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:
parent
5cb1025a17
commit
e8f53d2144
@ -48,7 +48,13 @@ class InaccessibleTensorError(ValueError):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@tf_export("errors.OperatorNotAllowedInGraphError", v1=[])
|
||||||
class OperatorNotAllowedInGraphError(TypeError):
|
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
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -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__"
|
||||||
|
}
|
||||||
|
}
|
@ -84,6 +84,10 @@ tf_module {
|
|||||||
name: "OpError"
|
name: "OpError"
|
||||||
mtype: "<type \'type\'>"
|
mtype: "<type \'type\'>"
|
||||||
}
|
}
|
||||||
|
member {
|
||||||
|
name: "OperatorNotAllowedInGraphError"
|
||||||
|
mtype: "<type \'type\'>"
|
||||||
|
}
|
||||||
member {
|
member {
|
||||||
name: "OutOfRangeError"
|
name: "OutOfRangeError"
|
||||||
mtype: "<type \'type\'>"
|
mtype: "<type \'type\'>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user