MCPcopy Create free account
hub / github.com/Gabesarch/ICAL / check_equal

Function check_equal

TEACh/utils/basic.py:620–624  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

618 return [copy.deepcopy(p) for p in model_part.parameters()]
619
620def check_equal(a, b):
621 # first check that the length of the two list are equal
622 assert len(a) == len(b), "the list sizes are not equal for sure failing"
623 res = [torch.equal(p1, p2) for p1, p2 in zip(a, b)]
624 return all(res)
625
626def check_notequal(a, b):
627 # here I still check that the lists are equal in length, since same subnet

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected