add Encode_with_max_pooling for LLC