Interface Op

    • Method Detail

      • extraArgsDataBuff

        DataBuffer extraArgsDataBuff​(DataType bufferType)
        Returns the extra args as a data buffer
        Returns:
      • extraArgsBuff

        Buffer extraArgsBuff()
        Returns a buffer of either float or double of the extra args for this buffer
        Returns:
        a buffer of either opType float or double representing the extra args for this op
      • opNum

        int opNum()
        An op number. The operation numbers can be found here: deeplearning4j/libnd4jinclude/loops/legacy_ops.h
        Returns:
      • opName

        String opName()
        The opName of this operation
        Returns:
        the opName of this operation
      • x

        INDArray x()
        The origin ndarray
        Returns:
        the origin ndarray
      • y

        INDArray y()
        The pairwise op ndarray
        Returns:
        the pairwise op ndarray
      • z

        INDArray z()
        The resulting ndarray
        Returns:
        the resulting ndarray
      • extraArgs

        Object[] extraArgs()
        Extra arguments
        Returns:
        the extra arguments
      • setX

        void setX​(INDArray x)
        set x (the input ndarray)
        Parameters:
        x -
      • setZ

        void setZ​(INDArray z)
        set z (the solution ndarray)
        Parameters:
        z -
      • setY

        void setY​(INDArray y)
        set y(the pairwise ndarray)
        Parameters:
        y -
      • setExtraArgs

        void setExtraArgs​(Object[] extraArgs)
        Parameters:
        extraArgs -
      • toCustomOp

        CustomOp toCustomOp()
        Converts this op to be a CustomOp A CustomOp is a more flexible op meant for multiple inputs and outputs. The default implementation in BaseOp converts a simple op to a multi input/output operation by mapping the x and y on to inputs , the op opName and the z on to outputs.
        Returns:
        the equivalent CustomOp
      • clearArrays

        void clearArrays()
        Clear the input and output INDArrays, if any are set