public class Variance extends BaseReduceOp
| Modifier and Type | Field and Description |
|---|---|
protected double |
bias |
protected boolean |
biasCorrected |
protected double |
mean |
isComplex, isEmptyReduce, keepDimsdimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexIddimensions, extraArgs, inPlace, sameDiff, scalarValue| Constructor and Description |
|---|
Variance() |
Variance(boolean biasCorrected) |
Variance(INDArray x,
boolean biasCorrected,
int... dimensions) |
Variance(INDArray x,
INDArray z,
boolean biasCorrected,
boolean keepDims,
int... dimensions) |
Variance(INDArray x,
INDArray z,
boolean biasCorrected,
int... dimensions) |
Variance(INDArray x,
int... dimension) |
Variance(SameDiff sameDiff,
SDVariable i_v,
boolean biasCorrected,
boolean keepDims,
int[] dimensions) |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
calculateOutputDataTypes(List<DataType> dataTypes)
Calculate the data types for the output arrays.
|
List<LongShapeDescriptor> |
calculateOutputShape()
Calculate the output shape for this op
|
List<SDVariable> |
doDiff(List<SDVariable> grad)
The actual implementation for automatic differentiation.
|
Op.Type |
getOpType() |
boolean |
isBiasCorrected() |
INDArray |
noOp()
Returns the no op version
of the input
Basically when a reduce can't happen (eg: sum(0) on a row vector)
you have a no op state for a given reduction.
|
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) |
Op.Type |
opType()
The type of the op
|
DataType |
resultType()
This method returns datatype for result array wrt given inputs
|
void |
setBiasCorrected(boolean biasCorrected) |
String |
tensorflowName()
The opName of this function tensorflow
|
boolean |
validateDataTypes() |
hasReductionIndices, initFromOnnx, initFromTensorFlow, isComplexAccumulation, isKeepDims, setDimensionsdefineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getNumOutputs, getOpType, hashCode, outputVariables, setX, setY, setZ, toCustomOp, toString, x, y, zarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, f, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitdimensions, getFinalResultextraArgs, extraArgsBuff, extraArgsDataBuff, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, zprotected double mean
protected double bias
protected boolean biasCorrected
public Variance(SameDiff sameDiff, SDVariable i_v, boolean biasCorrected, boolean keepDims, int[] dimensions)
public Variance()
public Variance(boolean biasCorrected)
public Variance(INDArray x, int... dimension)
public Variance(INDArray x, boolean biasCorrected, int... dimensions)
public INDArray noOp()
ReduceOpnoOp in interface ReduceOpnoOp in class BaseReduceOppublic int opNum()
DifferentialFunctionOp)opNum in interface OpopNum in class DifferentialFunctionpublic String opName()
DifferentialFunctionopName in interface OpopName in class DifferentialFunctionpublic boolean isBiasCorrected()
public void setBiasCorrected(boolean biasCorrected)
public List<SDVariable> doDiff(List<SDVariable> grad)
DifferentialFunctiondoDiff in class DifferentialFunctionpublic String onnxName()
DifferentialFunctiononnxName in class DifferentialFunctionpublic String tensorflowName()
DifferentialFunctiontensorflowName in class DifferentialFunctionpublic Op.Type getOpType()
public DataType resultType()
ReduceOppublic boolean validateDataTypes()
public List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in class BaseReduceOppublic Op.Type opType()
DifferentialFunctionopType in class DifferentialFunctionpublic List<DataType> calculateOutputDataTypes(List<DataType> dataTypes)
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 DifferentialFunctiondataTypes - The data types of the inputsCopyright © 2019. All rights reserved.