MCPcopy Create free account
hub / github.com/apple/axlearn / __eq__

Method __eq__

axlearn/common/param_init.py:64–67  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

62 return FanAxes(**axes)
63
64 def __eq__(self, other):
65 if not isinstance(other, FanAxes):
66 return False
67 return self.canonicalize()._asdict() == other.canonicalize()._asdict()
68
69 # We can't insert into other locations besides the start and end
70 # because FanAxes doesn't know the number of dimensions of the parameter shape.

Callers

nothing calls this directly

Calls 1

canonicalizeMethod · 0.95

Tested by

no test coverage detected