You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Chizkiyahu,
Thank you for the request. Could you please provide that there is any specific reason to use operator.eq operator. From the code we can see that you are trying to use import operator, which we are supporting. Please provide more information on the use-case. Thank you!
I understand that certain TensorFlow math operations are equivalent to Python's built-in operators and functions from the operator module. For instance:
tf.math.add is equivalent to the + operator and operator.add.
tf.math.subtract is equivalent to the - operator and operator.sub.
tf.math.multiply is equivalent to the * operator and operator.mul.
to be clear == and operator.eq is the same
Similarly, I expected that tf.math.equal would be equivalent to the == operator and operator.eq. While this seems to work as expected, I encounter issues when I save and reload the model from disk.
@tilakrayal, I hope I've captured your points accurately. If you need more information or find any part unclear, please feel free to ask.
System information.
Describe the problem.
When the model continues build-in equal like == or operator.eq operator fails in load
but when using tf.math.equal is ok
Describe the current behavior.
load when have build-in operator like other build-in + - * /
Standalone code to reproduce the issue.
gist here
Source code / logs.
The text was updated successfully, but these errors were encountered: