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;
|
int64 num_parallel_calls = 0;
|
||||||
OP_REQUIRES_OK(ctx, ParseScalarArgument(ctx, "num_parallel_calls",
|
OP_REQUIRES_OK(ctx, ParseScalarArgument(ctx, "num_parallel_calls",
|
||||||
&num_parallel_calls));
|
&num_parallel_calls));
|
||||||
OP_REQUIRES(ctx, num_parallel_calls > 0,
|
OP_REQUIRES(
|
||||||
errors::InvalidArgument(
|
ctx, num_parallel_calls > 0 || num_parallel_calls == model::kAutoTune,
|
||||||
"num_parallel_calls must be greater than zero."));
|
errors::InvalidArgument(
|
||||||
|
"num_parallel_calls must be greater than zero."));
|
||||||
|
|
||||||
OpInputList dense_default_tensors;
|
OpInputList dense_default_tensors;
|
||||||
OP_REQUIRES_OK(ctx,
|
OP_REQUIRES_OK(ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user