Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
def
_sum_ft(tensor):
25
""
"sum over the first and last dimention"
""
26
return
tensor.sum(dim=0).sum(dim=-1)
27
28
29
def
_unsqueeze_ft(tensor):
Callers
1
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected