class_docstr: Sequence-to-sequence base class.
class_docstr_tok: ["Sequence-to-sequence","base","class","."]
code: def infer(self, sess):
      assert self.mode == tf.contrib.learn.ModeKeys.INFER
      output_tuple = InferOutputTuple(
          infer_logits=self.infer_logits,
          infer_summary=self.infer_summary,
          sample_id=self.sample_id,
          sample_words=self.sample_words,
      )
      return sess.run(output_tuple)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import collections
  import tensorflow
  from tensorflow.contrib.model_pruning import get_masks, get_thresholds
  from tensorflow.contrib.model_pruning.python import pruning
  from tensorflow.contrib.model_pruning.python.layers import core_layers
  from .None import model_helper
  from .utils import misc_utils, iterator_utils
label_desc: Use image node_id 21 for calling the BaseModel obj's underlying member method code with example usage: obj.infer(sess) and returns: sess