def get_encoder_feature(self, s, visual_s):
    '\n        params:\n            s: [B, x]\n            visual_s: [B, y]\n        return:\n            feat: [B, z]\n        '
    if (self.vector_net.use_vector and self.visual_net.use_visual):
        feat = self.get_vec_feature(s)
        vis_feat = self.get_vis_feature(visual_s)
        feat = tf.concat([feat, vis_feat], axis=(- 1))
    elif self.visual_net.use_visual:
        vis_feat = self.get_vis_feature(visual_s)
        feat = vis_feat
    else:
        feat = self.get_vec_feature(s)
    encoder_feature = self.encoder_net(feat)
    return encoder_feature
params:
    s: [B, x]
    visual_s: [B, y]
return:
    feat: [B, z]
def get_encoder_feature(self, s, visual_s):
    '\n        params:\n            s: [B, x]\n            visual_s: [B, y]\n        return:\n            feat: [B, z]\n        '
    if (self.vector_net.use_vector and self.visual_net.use_visual):
        feat = self.get_vec_feature(s)
        vis_feat = self.get_vis_feature(visual_s)
        feat = tf.concat([feat, vis_feat], axis=(- 1))
    elif self.visual_net.use_visual:
        vis_feat = self.get_vis_feature(visual_s)
        feat = vis_feat
    else:
        feat = self.get_vec_feature(s)
    encoder_feature = self.encoder_net(feat)
    return encoder_feature