MCPcopy 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
1087def mean_flat(tensor):
1088 """
1089 Take the mean over all non-batch dimensions.
1090 """
1091 return tensor.flatten(1).mean(1)

Callers 5

training_lossesMethod · 0.85
_vb_terms_bpdMethod · 0.85
training_lossesMethod · 0.85
_prior_bpdMethod · 0.85
calc_bpd_loopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected