code: def _predict_in_session(self, sess, other_var, X_feat, X_seq, variable="y_pred"):
          
          # other_var["tf_X_seq"]: X_seq, tf_y: y,
          feed_dict = {other_var["tf_X_feat"]: X_feat,
                       other_var["tf_X_seq"]: X_seq}
  
          y_pred = sess.run(other_var[variable], feed_dict=feed_dict)
          return y_pred
docs: Predict y (or any other variable) from inside the tf session. Variable has to be in other_var