code: def predict(self, s, s_length):
      (
          bseq_indices,
          bseq_values,
          bseq_shape,
      ) = self.get_sparse_tensor_info(s, True)
      predictions = self.session.run(
          self.predictions,
          feed_dict={
              self.bseq: (bseq_indices, bseq_values, bseq_shape),
              self.bseq_length: s_length,
          },
      )
      return predictions.squeeze()
  
file_path: cornac/cornac/models/beacon/beacon_tf.py
imports: import numpy
  import warnings
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling the BeaconModel obj's underlying member method code with example usage: obj.predict(s, s_length) and returns: predictions