
TensorflowでOperatorNotAllowedInGraphError: using a `tf.Tensor` as a Python `bool` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.
tf.data.TFRecordDatasetでmapを使った時に表題のエラー。mapしたい処理内容を単純化すると以下のような内容。import tensorflow.experimental.numpy as tnp2 ** tnp.ar...