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

Method __eq__

tensorflow/python/framework/tensor_shape.py:1184–1190  ·  view source on GitHub ↗

Returns True if `self` is equivalent to `other`.

(self, other)

Source from the content-addressed store, hash-verified

1182 ])
1183
1184 def __eq__(self, other):
1185 """Returns True if `self` is equivalent to `other`."""
1186 try:
1187 other = as_shape(other)
1188 except TypeError:
1189 return NotImplemented
1190 return self._dims == other.dims
1191
1192 def __ne__(self, other):
1193 """Returns True if `self` is known to be different from `other`."""

Callers

nothing calls this directly

Calls 1

as_shapeFunction · 0.85

Tested by

no test coverage detected