Commit a135c0f0 authored by Dan Moldovan's avatar Dan Moldovan Committed by A. Unique TensorFlower
Browse files

Extract the lambda declaration to avoid the autograph warning. A lambda might...

Extract the lambda declaration to avoid the autograph warning. A lambda might not be at all necessary, so trying that fist.

PiperOrigin-RevId: 309353494
parent 898cc540
...@@ -91,7 +91,7 @@ class InputFn(object): ...@@ -91,7 +91,7 @@ class InputFn(object):
dataset = dataset.repeat() dataset = dataset.repeat()
dataset = dataset.interleave( dataset = dataset.interleave(
map_func=lambda file_name: self._dataset_fn(file_name), cycle_length=32, map_func=self._dataset_fn, cycle_length=32,
num_parallel_calls=tf.data.experimental.AUTOTUNE) num_parallel_calls=tf.data.experimental.AUTOTUNE)
if self._is_training: if self._is_training:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment