MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __ne__

Method __ne__

tensorflow/python/framework/tensor_shape.py:217–225  ·  view source on GitHub ↗

Returns true if `other` has a different known value from `self`.

(self, other)

Source from the content-addressed store, hash-verified

215 return self._value == other.value
216
217 def __ne__(self, other):
218 """Returns true if `other` has a different known value from `self`."""
219 try:
220 other = as_dimension(other)
221 except (TypeError, ValueError):
222 return NotImplemented
223 if self._value is None or other.value is None:
224 return None
225 return self._value != other.value
226
227 def __int__(self):
228 return self._value

Callers

nothing calls this directly

Calls 1

as_dimensionFunction · 0.85

Tested by

no test coverage detected