export OperatorNotAllowedInGraphError to public for tf.keras to use public API of TensorFlow only. The change won't break any existing usages.

PiperOrigin-RevId: 322234301
Change-Id: I7b09e7ce7afa293590f09adbd69d38b59afa6175
This commit is contained in:
Haifeng Jin 2020-07-20 15:08:44 -07:00 committed by TensorFlower Gardener
parent 5cb1025a17
commit e8f53d2144
3 changed files with 22 additions and 0 deletions

View File

@ -48,7 +48,13 @@ class InaccessibleTensorError(ValueError):
pass
@tf_export("errors.OperatorNotAllowedInGraphError", v1=[])
class OperatorNotAllowedInGraphError(TypeError):
"""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.
"""
pass

View File

@ -0,0 +1,12 @@
path: "tensorflow.errors.OperatorNotAllowedInGraphError"
tf_class {
is_instance: "<class \'tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError\'>"
is_instance: "<class \'TypeError\'>"
member {
name: "args"
mtype: "<type \'getset_descriptor\'>"
}
member_method {
name: "__init__"
}
}

View File

@ -84,6 +84,10 @@ tf_module {
name: "OpError"
mtype: "<type \'type\'>"
}
member {
name: "OperatorNotAllowedInGraphError"
mtype: "<type \'type\'>"
}
member {
name: "OutOfRangeError"
mtype: "<type \'type\'>"