MCPcopy Create free account
hub / github.com/tensorflow/lingvo / BuildInputBatch

Method BuildInputBatch

lingvo/tasks/mt/input_generator.py:87–156  ·  view source on GitHub ↗

Builds an input batch. Args: batch_size: batch size to use, defaults to infeed batch size. features_list: Use this list to build the batch. bucket_keys: If None, bucket_keys[i] is the bucketing key of the i-th sample. Returns: py_utils.NestedMap with feature

(self, batch_size, features_list, bucket_keys=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

TransformMethod · 0.95

Tested by

no test coverage detected