(self, obs)
return feat[0]
Return the image features for an observation.
        Args:
            obs: Observation vector.
Return the image features for an observation.
        Args:
            obs: Observation vector.
Return the image features for an observation . Args : obs : Observation vector .
def get_features(self, obs):
        """
        Return the image features for an observation.
        Args:
            obs: Observation vector.
        """
        if len(obs.shape) == 1:
            obs = np.expand_dims(obs, axis=0)
        # Assume that features don't depend on the robot config, so don't normalize by scale and bias.
        with tf.device(self.device_string):
            feat = self.sess.run(self.feat_op, feed_dict={self.obs_tensor: obs})
        return feat[0]
def get_features ( self , obs ) : if len ( obs . shape ) == 1 : obs = np . expand_dims ( obs , axis = 0 ) # Assume that features don't depend on the robot config, so don't normalize by scale and bias. with tf . device ( self . device_string ) : feat = self . sess . run ( self . feat_op , feed_dict = { self . obs_tensor : obs } ) return feat [ 0 ]