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

Method sum

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

Source from the content-addressed store, hash-verified

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)
291
292 def prod(self, dim: Optional[Union[int, Tuple[int,...]]] = None, keepdim: bool = False) -> torch.Tensor:
293 return self.reduce(op='prod', dim=dim, keepdim=keepdim)

Callers 15

build_metadata.pyFile · 0.80
dual_grid_view.pyFile · 0.80
init_random_lightingFunction · 0.80
reduceMethod · 0.80
calc_window_partitionFunction · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
gaussianFunction · 0.80
normal_angleFunction · 0.80
renderMethod · 0.80

Calls 1

reduceMethod · 0.95

Tested by

no test coverage detected