class_docstr: Tests :class:`~texar.tf.modules.TransformerDecoder`
      
class_docstr_tok: ["Tests",":","class",":","`","~texar.tf.modules.TransformerDecoder","`"]
docstr: Tests train_greedy with context
          
docstr_tok: ["Tests","train_greedy","with","context"]
code: def test_infer_greedy_with_context_without_memory(self):
      """Tests train_greedy with context"""
      decoder = TransformerDecoder(
          vocab_size=self._vocab_size, output_layer=self._output_layer
      )
      helper = tx_helper.GreedyEmbeddingHelper(
          self._embedding_fn, self._start_tokens, self._end_token
      )
  
      outputs, length = decoder(
          memory=None,
          memory_sequence_length=None,
          memory_attention_bias=None,
          inputs=None,
          decoding_strategy="infer_greedy",
          helper=helper,
          context=self._context,
          context_sequence_length=self._context_length,
          end_token=self._end_token,
          max_decoding_length=self._max_decode_len,
          mode=tf.estimator.ModeKeys.PREDICT,
      )
      with self.test_session() as sess:
          sess.run(tf.global_variables_initializer())
          outputs_ = sess.run(outputs)
          self.assertIsInstance(outputs_, TransformerDecoderOutput)
  
file_path: texar/tests/modules/decoders/transformer_decoders_test.py
imports: import tensorflow
  from texar.tf.modules.decoders.transformer_decoders import TransformerDecoder
  from texar.tf.modules.decoders.transformer_decoders import TransformerDecoderOutput
  from texar.tf.modules.decoders import tf_helpers
label_desc: Use image node_id 5 for calling the TransformerDecoderTest obj's underlying member method code with example usage: obj.test_infer_greedy_with_context_without_memory() without return types