MCPcopy Create free account
hub / github.com/cupy/cupy / prod

Method prod

cupyx/distributed/array/_array.py:593–609  ·  view source on GitHub ↗

Return the minimum along a given axis. .. note:: Currently, it only supports non-``None`` values for ``axis`` and the default values for ``out`` and ``keepdims``. .. seealso:: :meth:`cupy.ndarray.prod`, :meth:`numpy.ndarray.prod`

(self, axis=None, dtype=None, out=None, keepdims=None)

Source from the content-addressed store, hash-verified

591 'DistributedArray currently does not support partition.')
592
593 def prod(self, axis=None, dtype=None, out=None, keepdims=None):
594 """Return the minimum along a given axis.
595
596 .. note::
597
598 Currently, it only supports non-``None`` values for ``axis`` and
599 the default values for ``out`` and ``keepdims``.
600
601 .. seealso::
602 :meth:`cupy.ndarray.prod`, :meth:`numpy.ndarray.prod`
603 """
604 if dtype is None:
605 return self.__cupy_override_reduction_kernel__(
606 _math.prod_auto_dtype, axis, dtype, out, keepdims)
607 else:
608 return self.__cupy_override_reduction_kernel__(
609 _math.prod_keep_dtype, axis, dtype, out, keepdims)
610
611 def ptp(self, *args, **kwargs):
612 """Not supported."""

Callers 15

empty_pinnedFunction · 0.45
empty_like_pinnedFunction · 0.45
_batched_posvFunction · 0.45
_batched_potrsFunction · 0.45
check_shapeFunction · 0.45
_non_zero_cmpFunction · 0.45
_min_or_maxMethod · 0.45
medfiltFunction · 0.45
bilinear_zpkFunction · 0.45
lp2hp_zpkFunction · 0.45
lp2bs_zpkFunction · 0.45
cheb1apFunction · 0.45

Tested by

no test coverage detected