(a, b)
| 618 | return [copy.deepcopy(p) for p in model_part.parameters()] |
| 619 | |
| 620 | def 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 | |
| 626 | def check_notequal(a, b): |
| 627 | # here I still check that the lists are equal in length, since same subnet |
nothing calls this directly
no outgoing calls
no test coverage detected