Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ _mean
Function
_mean
imperative/python/megengine/utils/module_stats.py:175–177 ·
view source on GitHub ↗
(inp)
Source
from the content-addressed store, hash-verified
173
174
175
def
_mean(inp):
176
inp = Tensor(inp).astype(np.float32)
177
return
F.mean(inp).numpy()
178
179
180
def
_std(inp):
Callers
2
get_param_stats
Function · 0.85
get_activation_stats
Function · 0.85
Calls
4
Tensor
Class · 0.50
astype
Method · 0.45
numpy
Method · 0.45
mean
Method · 0.45
Tested by
no test coverage detected