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

Method __eq__

tensorflow/python/framework/tensor_shape.py:207–215  ·  view source on GitHub ↗

Returns true if `other` has the same known value as this Dimension.

(self, other)

Source from the content-addressed store, hash-verified

205 return "?" if value is None else str(value)
206
207 def __eq__(self, other):
208 """Returns true if `other` has the same known value as this Dimension."""
209 try:
210 other = as_dimension(other)
211 except (TypeError, ValueError):
212 return NotImplemented
213 if self._value is None or other.value is None:
214 return None
215 return self._value == other.value
216
217 def __ne__(self, other):
218 """Returns true if `other` has a different known value from `self`."""

Callers

nothing calls this directly

Calls 1

as_dimensionFunction · 0.85

Tested by

no test coverage detected