public abstract class BaseRandomOp extends BaseOp implements RandomOp
| Modifier and Type | Field and Description |
|---|---|
protected DataType |
dataType |
protected long[] |
shape |
dimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexIddimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
BaseRandomOp(INDArray x,
INDArray y,
INDArray z) |
BaseRandomOp(SameDiff sd,
long[] shape) |
BaseRandomOp(SameDiff sameDiff,
SDVariable i_v) |
| 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
|
boolean |
isInPlace() |
boolean |
isTripleArgRngOp() |
Op.Type |
opType()
The type of the op
|
clearArrays, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, onnxName, outputVariables, setX, setY, setZ, tensorflowName, toCustomOp, toString, x, y, zarg, arg, argNames, args, attributeAdaptersForFunction, calculateOutputShape, configFieldName, diff, doDiff, dup, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, opName, opNum, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitclearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, opName, opNum, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, zprotected long[] shape
protected DataType dataType
public BaseRandomOp(SameDiff sameDiff, SDVariable i_v)
public BaseRandomOp(SameDiff sd, long[] shape)
public Op.Type opType()
DifferentialFunctionopType in class DifferentialFunctionpublic List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in class DifferentialFunctionpublic 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 DifferentialFunctioninputDataTypes - The data types of the inputspublic boolean isInPlace()
public boolean isTripleArgRngOp()
Copyright © 2021. All rights reserved.