MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / _sum_ft

Function _sum_ft

lib/nn/modules/batchnorm.py:24–26  ·  view source on GitHub ↗

sum over the first and last dimention

(tensor)

Source from the content-addressed store, hash-verified

22
23
24def _sum_ft(tensor):
25 """sum over the first and last dimention"""
26 return tensor.sum(dim=0).sum(dim=-1)
27
28
29def _unsqueeze_ft(tensor):

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected