def _encode_pixel(self, features, object_selector, training):
    obj_pixels = tf.reshape(features['obj_pixels'], [(- 1), 64, 64, 1])
    valid_obj_pixels = tf.gather(obj_pixels, object_selector)
    thumbnail_encoding = valid_obj_pixels
    for layer in self._pixel_layers:
        thumbnail_encoding = layer(thumbnail_encoding, training=training, dropout=self._hparams['dropout'])
    thumbnail_encoding = tf.reshape(thumbnail_encoding, [(- 1), 256])
    return thumbnail_encoding
def _encode_pixel(self, features, object_selector, training):
    obj_pixels = tf.reshape(features['obj_pixels'], [(- 1), 64, 64, 1])
    valid_obj_pixels = tf.gather(obj_pixels, object_selector)
    thumbnail_encoding = valid_obj_pixels
    for layer in self._pixel_layers:
        thumbnail_encoding = layer(thumbnail_encoding, training=training, dropout=self._hparams['dropout'])
    thumbnail_encoding = tf.reshape(thumbnail_encoding, [(- 1), 256])
    return thumbnail_encoding