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

Function l2_normalize

TEACh/utils/basic.py:457–459  ·  view source on GitHub ↗
(x, dim=1)

Source from the content-addressed store, hash-verified

455 return flow
456
457def l2_normalize(x, dim=1):
458 # dim1 is the channel dim
459 return F.normalize(x, p=2, dim=dim)
460
461def hard_argmax3d(tensor):
462 B, C, Z, Y, X = list(tensor.shape)

Callers

nothing calls this directly

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected