(self, batch, just_enc=False)
return feed_dict
Make a feed dictionary mapping parts of the batch to the appropriate placeholders.

    Args:
      batch: Batch object
      just_enc: Boolean. If True, only feed the parts needed for the encoder.
Make a feed dictionary mapping parts of the batch to the appropriate placeholders.
Make a feed dictionary mapping parts of the batch to the appropriate placeholders .
def _make_feed_dict(self, batch, just_enc=False):
    """Make a feed dictionary mapping parts of the batch to the appropriate placeholders.

    Args:
      batch: Batch object
      just_enc: Boolean. If True, only feed the parts needed for the encoder.
    """
    feed_dict = {}
    feed_dict[self._enc_batch] = batch.enc_batch
    feed_dict[self._enc_lens] = batch.enc_lens
    feed_dict[self._enc_padding_mask] = batch.enc_padding_mask
    if FLAGS.pointer_gen:
      feed_dict[self._enc_batch_extend_vocab] = batch.enc_batch_extend_vocab
      feed_dict[self._max_art_oovs] = batch.max_art_oovs
    if not just_enc:
      feed_dict[self._dec_batch] = batch.dec_batch
      feed_dict[self._target_batch] = batch.target_batch
      feed_dict[self._dec_padding_mask] = batch.dec_padding_mask
    return feed_dict
def _make_feed_dict ( self , batch , just_enc = False ) : feed_dict = { } feed_dict [ self . _enc_batch ] = batch . enc_batch feed_dict [ self . _enc_lens ] = batch . enc_lens feed_dict [ self . _enc_padding_mask ] = batch . enc_padding_mask if FLAGS . pointer_gen : feed_dict [ self . _enc_batch_extend_vocab ] = batch . enc_batch_extend_vocab feed_dict [ self . _max_art_oovs ] = batch . max_art_oovs if not just_enc : feed_dict [ self . _dec_batch ] = batch . dec_batch feed_dict [ self . _target_batch ] = batch . target_batch feed_dict [ self . _dec_padding_mask ] = batch . dec_padding_mask return feed_dict