public class WeightInitUtil extends Object
Modifier and Type | Field and Description |
---|---|
static char |
DEFAULT_WEIGHT_INIT_ORDER
Default order for the arrays created by WeightInitUtil.
|
Modifier and Type | Method and Description |
---|---|
static INDArray |
initWeights(double fanIn,
double fanOut,
int[] shape,
WeightInit initScheme,
Distribution dist,
char order,
INDArray paramView)
Deprecated.
|
static INDArray |
initWeights(double fanIn,
double fanOut,
int[] shape,
WeightInit initScheme,
Distribution dist,
INDArray paramView)
Deprecated.
|
static INDArray |
initWeights(double fanIn,
double fanOut,
long[] shape,
WeightInit initScheme,
Distribution dist,
char order,
INDArray paramView) |
static INDArray |
initWeights(double fanIn,
double fanOut,
long[] shape,
WeightInit initScheme,
Distribution dist,
INDArray paramView)
Initializes a matrix with the given weight initialization scheme.
|
static INDArray |
initWeights(int[] shape,
float min,
float max) |
static INDArray |
reshapeWeights(int[] shape,
INDArray paramsView)
Reshape the parameters view, without modifying the paramsView array values.
|
static INDArray |
reshapeWeights(int[] shape,
INDArray paramsView,
char flatteningOrder)
Reshape the parameters view, without modifying the paramsView array values.
|
static INDArray |
reshapeWeights(long[] shape,
INDArray paramsView)
Reshape the parameters view, without modifying the paramsView array values.
|
static INDArray |
reshapeWeights(long[] shape,
INDArray paramsView,
char flatteningOrder)
Reshape the parameters view, without modifying the paramsView array values.
|
public static final char DEFAULT_WEIGHT_INIT_ORDER
public static INDArray initWeights(int[] shape, float min, float max)
@Deprecated public static INDArray initWeights(double fanIn, double fanOut, int[] shape, WeightInit initScheme, Distribution dist, INDArray paramView)
#initWeights(int[], WeightInit, Distribution, char, INDArray)
to control thisshape
- the shape of the matrixinitScheme
- the scheme to usepublic static INDArray initWeights(double fanIn, double fanOut, long[] shape, WeightInit initScheme, Distribution dist, INDArray paramView)
#initWeights(long[], WeightInit, Distribution, char, INDArray)
to control thisshape
- the shape of the matrixinitScheme
- the scheme to use@Deprecated public static INDArray initWeights(double fanIn, double fanOut, int[] shape, WeightInit initScheme, Distribution dist, char order, INDArray paramView)
public static INDArray initWeights(double fanIn, double fanOut, long[] shape, WeightInit initScheme, Distribution dist, char order, INDArray paramView)
public static INDArray reshapeWeights(int[] shape, INDArray paramsView)
shape
- Shape to reshapeparamsView
- Parameters array viewpublic static INDArray reshapeWeights(long[] shape, INDArray paramsView)
shape
- Shape to reshapeparamsView
- Parameters array viewpublic static INDArray reshapeWeights(int[] shape, INDArray paramsView, char flatteningOrder)
shape
- Shape to reshapeparamsView
- Parameters array viewflatteningOrder
- Order in which parameters are flattened/reshapedpublic static INDArray reshapeWeights(long[] shape, INDArray paramsView, char flatteningOrder)
shape
- Shape to reshapeparamsView
- Parameters array viewflatteningOrder
- Order in which parameters are flattened/reshapedCopyright © 2019. All rights reserved.