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

Function assert_same_shape

TEACh/utils/basic.py:9–11  ·  view source on GitHub ↗
(t1, t2)

Source from the content-addressed store, hash-verified

7import copy
8
9def assert_same_shape(t1, t2):
10 for (x, y) in zip(list(t1.shape), list(t2.shape)):
11 assert(x==y)
12
13# def print_stats_py(name, tensor):
14# print('%s (%s) min = %.2f, mean = %.2f, max = %.2f' % (name, tensor.dtype, np.min(tensor), np.mean(tensor), np.max(tensor)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected