Interface ReduceOp

    • Method Detail

      • noOp

        INDArray noOp()
        Returns the no op version of the input Basically when a reduce can't happen (eg: sum(0) on a row vector) you have a no op state for a given reduction. For most accumulations, this should return x but certain transformations should return say: the absolute value
        Returns:
        the no op version of the input
      • dimensions

        INDArray dimensions()
        This method returns dimensions for this op
        Returns:
      • isComplexAccumulation

        @Deprecated
        boolean isComplexAccumulation()
        Deprecated.
      • isKeepDims

        boolean isKeepDims()
        This method returns TRUE if we're going to keep axis, FALSE otherwise
        Returns:
      • resultType

        DataType resultType()
        This method returns datatype for result array wrt given inputs
        Returns:
      • validateDataTypes

        boolean validateDataTypes​(OpContext oc)
      • getFinalResult

        Number getFinalResult()
      • setDimensions

        void setDimensions​(int... dimensions)