Allow AUTOTUNE to be an acceptable value for num_parallel_calls.
PiperOrigin-RevId: 254252931
This commit is contained in:
parent
889c063f0e
commit
c759a9fb39
@ -75,9 +75,10 @@ class ParseExampleDatasetOp : public UnaryDatasetOpKernel {
|
||||
int64 num_parallel_calls = 0;
|
||||
OP_REQUIRES_OK(ctx, ParseScalarArgument(ctx, "num_parallel_calls",
|
||||
&num_parallel_calls));
|
||||
OP_REQUIRES(ctx, num_parallel_calls > 0,
|
||||
errors::InvalidArgument(
|
||||
"num_parallel_calls must be greater than zero."));
|
||||
OP_REQUIRES(
|
||||
ctx, num_parallel_calls > 0 || num_parallel_calls == model::kAutoTune,
|
||||
errors::InvalidArgument(
|
||||
"num_parallel_calls must be greater than zero."));
|
||||
|
||||
OpInputList dense_default_tensors;
|
||||
OP_REQUIRES_OK(ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user