tf.errors.OperatorNotAllowedInGraphError

View source on GitHub

An error is raised for unsupported operator in Graph execution.

For example, using a tf.Tensor as a Python bool in Graph execution is not allowed.