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

Method __eq__

caffe2/python/schema.py:182–188  ·  view source on GitHub ↗

Equivalance of two schemas

(self, other)

Source from the content-addressed store, hash-verified

180 return pos
181
182 def __eq__(self, other):
183 """Equivalance of two schemas"""
184 return (
185 (self.field_names() == other.field_names()) and
186 (self.field_types() == other.field_types()) and
187 (self.field_metadata() == other.field_metadata())
188 )
189
190 def _pprint_impl(self, indent, str_buffer):
191 raise NotImplementedError('Field is an abstract class.')

Callers

nothing calls this directly

Calls 6

field_namesMethod · 0.95
field_typesMethod · 0.95
field_metadataMethod · 0.95
field_namesMethod · 0.45
field_typesMethod · 0.45
field_metadataMethod · 0.45

Tested by

no test coverage detected