>>> AUTOTUNE = tf.data.experimental.AUTOTUNE
>>> image_ds = \
... path_ds.map(load_and_preprocess_image, num_parallel_calls=AUTOTUNE)
WARNING:tensorflow:
AutoGraph could not transform and will run it as-is.
Please report this to the TensorFlow team.
When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.
Cause: Unable to locate the source code of .
Note that functions defined in certain environments, like the interactive Python shell do not expose their source code.
If that is the case, you should to define them in a .py source file.
If you are certain the code is graph-compatible, wrap the call using @tf.autograph.do_not_convert.
Original error: could not get source code
image_ds の画像を表示:
>>> import matplotlib.pyplot as plt
>>> plt.figure(figsize=(8,8))
(画像のウィンドウが開く)
ウィンドウを閉じる
([], [])
([], [])
Text(0.5, 0, 'Image (CC BY 2.0) by Andrea_44')
(画像のウィンドウが開く)
ウィンドウを閉じる
([], [])
([], [])
Text(0.5, 0, 'Image (CC BY 2.0) by u2tryololo')
(画像のウィンドウが開く)
ウィンドウを閉じる
([], [])
([], [])
Text(0.5, 0, 'Image (CC BY 2.0) by AJ Batac')
(画像のウィンドウが開く)