MCPcopy
hub / github.com/TencentARC/Pixal3D / mean

Method mean

pixal3d/modules/sparse/basic.py:286–287  ·  view source on GitHub ↗
(self, dim: Optional[Union[int, Tuple[int,...]]] = None, keepdim: bool = False)

Source from the content-addressed store, hash-verified

284 return red
285
286 def mean(self, dim: Optional[Union[int, Tuple[int,...]]] = None, keepdim: bool = False) -> torch.Tensor:
287 return self.reduce(op='mean', dim=dim, keepdim=keepdim)
288
289 def sum(self, dim: Optional[Union[int, Tuple[int,...]]] = None, keepdim: bool = False) -> torch.Tensor:
290 return self.reduce(op='sum', dim=dim, keepdim=keepdim)

Callers 15

stdMethod · 0.95
reduceMethod · 0.80
smooth_l1_lossFunction · 0.80
l1_lossFunction · 0.80
l2_lossFunction · 0.80
_ssimFunction · 0.80
lpipsFunction · 0.80
normal_angleFunction · 0.80
run_stepMethod · 0.80
save_logsMethod · 0.80
training_lossesMethod · 0.80
training_lossesMethod · 0.80

Calls 1

reduceMethod · 0.95

Tested by

no test coverage detected