Skip to content

Commit b5c2681

Browse files
Vijay Vasudevantensorflower-gardener
authored andcommitted
Expose NotDifferentiable in the public API to replace NoGradient
in the future. Change: 132788439
1 parent 9ee8eae commit b5c2681

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tensorflow/python/framework/framework_lib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
## Defining new operations
5252
5353
@@RegisterGradient
54+
@@NotDifferentiable
5455
@@NoGradient
5556
@@RegisterShape
5657
@@TensorShape
@@ -97,6 +98,7 @@
9798

9899
# Needed when you defined a new Op in C++.
99100
from tensorflow.python.framework.ops import RegisterGradient
101+
from tensorflow.python.framework.ops import NotDifferentiable
100102
from tensorflow.python.framework.ops import NoGradient
101103
from tensorflow.python.framework.ops import RegisterShape
102104
from tensorflow.python.framework.tensor_shape import Dimension

0 commit comments

Comments
 (0)