[tf.data] Fix forward compatibility issue in rebatch.cc
PiperOrigin-RevId: 258820315
This commit is contained in:
parent
7dfc439541
commit
fe44fdddbc
@ -152,7 +152,8 @@ Status MutateBatchSize(const NodeDef& node, int64 num_workers,
|
||||
// For all the batching datasets the batch_size is input number 1 except for
|
||||
// MapAndBatchDataset.
|
||||
int64 batch_size_arg_index = 1;
|
||||
if (node.op() == "ExperimentalMapAndBatchDataset") {
|
||||
if (node.op() == "ExperimentalMapAndBatchDataset" ||
|
||||
node.op() == "MapAndBatchDataset") {
|
||||
// For MapAndBatch we take the 3rd last input.
|
||||
batch_size_arg_index = node.input_size() - 3;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user