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

Function downsample3dflow

TEACh/utils/basic.py:452–455  ·  view source on GitHub ↗
(flow, factor)

Source from the content-addressed store, hash-verified

450 return vox
451
452def downsample3dflow(flow, factor):
453 down = torch.nn.AvgPool3d(factor)
454 flow = down(flow) * 1./factor
455 return flow
456
457def l2_normalize(x, dim=1):
458 # dim1 is the channel dim

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected