Class WeightInitVarScalingNormalFanIn

    • Constructor Detail

      • WeightInitVarScalingNormalFanIn

        public WeightInitVarScalingNormalFanIn​(Double scale)
    • Method Detail

      • init

        public INDArray init​(double fanIn,
                             double fanOut,
                             long[] shape,
                             char order,
                             INDArray paramView)
        Description copied from interface: IWeightInit
        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
        Specified by:
        init in interface IWeightInit
        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)