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

Method prod

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

Source from the content-addressed store, hash-verified

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)
294
295 def std(self, dim: Optional[Union[int, Tuple[int,...]]] = None, keepdim: bool = False) -> torch.Tensor:
296 mean = self.mean(dim=dim, keepdim=True)

Callers 1

reduceMethod · 0.80

Calls 1

reduceMethod · 0.95

Tested by

no test coverage detected