Interface IWeightInit

    • Field Detail

    • Method Detail

      • init

        INDArray init​(double fanIn,
                      double fanOut,
                      long[] shape,
                      char order,
                      INDArray paramView)
        Initialize parameters in the given view. Double values are used for fanIn and fanOut as some layers (convolution with stride) results in a non-integer number which may be truncated to zero in certain configurations
        Parameters:
        fanIn - Number of input parameters
        fanOut - Number of output parameters
        shape - Desired shape of array (users shall assume paramView has this shape after method has finished)
        order - Order of array, e.g. Fortran ('f') or C ('c')
        paramView - View of parameters to initialize (and reshape)