Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ avg
Method
avg
SwissArmyTransformer/examples/yolos/util/misc.py:63–65 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
61
62
@property
63
def
avg(self):
64
d = torch.tensor(list(self.deque), dtype=torch.float32)
65
return
d.mean().item()
66
67
@property
68
def
global_avg(self):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected