MCPcopy
hub / github.com/jindongwang/transferlearning / mean

Method mean

code/deep/CSG/distr/utils.py:51–52  ·  view source on GitHub ↗
(self, dim, keepdim: bool=False)

Source from the content-addressed store, hash-verified

49 def item0(self): return next(iter(self.items()))
50
51 def mean(self, dim, keepdim: bool=False):
52 return edic({k: v.mean(dim, keepdim) for k,v in self.items()})
53 def expand_front(self, shape: tc.Size):
54 return edic({k: v.expand(shape + v.shape) for k,v in self.items()})
55 def broadcast(self):

Callers 15

fit_predictMethod · 0.45
fit_predictMethod · 0.45
fit_predictMethod · 0.45
get_ma_distFunction · 0.45
get_class_centerFunction · 0.45
EasyTLFunction · 0.45
demo_image.pyFile · 0.45
evaluateMethod · 0.45
classify_imagenetrFunction · 0.45
train.pyFile · 0.45

Calls 1

edicClass · 0.85

Tested by 4

classify_imagenetrFunction · 0.36
test_epochFunction · 0.36
test_epoch_inferenceFunction · 0.36
test_ic_uniFunction · 0.36