MCPcopy Create free account
hub / github.com/pytorch/executorch / __eq__

Method __eq__

backends/vulkan/utils.py:887–893  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

885 return f"TensorRepSet(Buffer Layouts: [{buffer_layouts}], Texture Layouts: [{texture_layouts}])"
886
887 def __eq__(self, other: object) -> bool:
888 if not isinstance(other, TensorRepSet):
889 return NotImplemented
890 return (
891 self.valid_buffer_layouts == other.valid_buffer_layouts
892 and self.valid_texture_layouts == other.valid_texture_layouts
893 )
894
895 def __ne__(self, other: object) -> bool:
896 return not self.__eq__(other)

Callers 1

__ne__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected