MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / median

Method median

utils.py:236–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

234
235 @property
236 def median(self):
237 d = torch.tensor(list(self.deque))
238 return d.median().item()
239
240 @property
241 def avg(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected