Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/openai/point-e
/ mean_flat
Function
mean_flat
point_e/diffusion/gaussian_diffusion.py:1087–1091 ·
view source on GitHub ↗
Take the mean over all non-batch dimensions.
(tensor)
Source
from the content-addressed store, hash-verified
1085
1086
1087
def
mean_flat(tensor):
1088
""
"
1089
Take the mean over all non-batch dimensions.
1090
""
"
1091
return
tensor.flatten(1).mean(1)
Callers
5
training_losses
Method · 0.85
_vb_terms_bpd
Method · 0.85
training_losses
Method · 0.85
_prior_bpd
Method · 0.85
calc_bpd_loop
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected