public class UniformDistribution extends BaseRandomOp
dataType, shapedimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexIddimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
UniformDistribution() |
UniformDistribution(double min,
double max,
DataType datatype,
long... shape) |
UniformDistribution(@NonNull INDArray z)
This op fills Z with random values within 0...1
|
UniformDistribution(@NonNull INDArray z,
double to)
This op fills Z with random values within 0...to
|
UniformDistribution(@NonNull INDArray z,
double from,
double to)
This op fills Z with random values within from...to boundaries
|
UniformDistribution(SameDiff sd,
double from,
double to,
DataType dataType,
long[] shape) |
UniformDistribution(SameDiff sd,
double from,
double to,
long[] shape) |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
calculateOutputDataTypes(List<DataType> inputDataTypes)
Calculate the data types for the output arrays.
|
List<LongShapeDescriptor> |
calculateOutputShape()
Calculate the output shape for this op
|
List<LongShapeDescriptor> |
calculateOutputShape(OpContext oc) |
List<SDVariable> |
doDiff(List<SDVariable> f1)
The actual implementation for automatic differentiation.
|
String |
onnxName()
The opName of this function in onnx
|
String |
opName()
The name of the op
|
int |
opNum()
The number of the op (mainly for old legacy XYZ ops
like
Op) |
isInPlace, isTripleArgRngOp, opTypeclearArrays, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, outputVariables, setX, setY, setZ, tensorflowName, toCustomOp, toString, x, y, zarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitclearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, zpublic UniformDistribution()
public UniformDistribution(SameDiff sd, double from, double to, long[] shape)
public UniformDistribution(SameDiff sd, double from, double to, DataType dataType, long[] shape)
public UniformDistribution(double min,
double max,
DataType datatype,
long... shape)
public UniformDistribution(@NonNull
@NonNull INDArray z,
double from,
double to)
z - from - to - public UniformDistribution(@NonNull
@NonNull INDArray z)
z - public UniformDistribution(@NonNull
@NonNull INDArray z,
double to)
z - public int opNum()
DifferentialFunctionOp)opNum in interface OpopNum in class DifferentialFunctionpublic String opName()
DifferentialFunctionopName in interface OpopName in class DifferentialFunctionpublic String onnxName()
DifferentialFunctionpublic List<SDVariable> doDiff(List<SDVariable> f1)
DifferentialFunctiondoDiff in class DifferentialFunctionpublic List<LongShapeDescriptor> calculateOutputShape(OpContext oc)
calculateOutputShape in class DifferentialFunctionpublic List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in class BaseRandomOppublic List<DataType> calculateOutputDataTypes(List<DataType> inputDataTypes)
DifferentialFunctionDifferentialFunction.calculateOutputShape(), this method differs in that it does not
require the input arrays to be populated.
This is important as it allows us to do greedy datatype inference for the entire net - even if arrays are not
available.calculateOutputDataTypes in class BaseRandomOpinputDataTypes - The data types of the inputsCopyright © 2021. All rights reserved.