public class Linspace extends BaseRandomOp
dataType, shape
dimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexId
dimensions, extraArgs, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
Linspace() |
Linspace(double from,
double to,
long length,
DataType dataType) |
Linspace(double from,
long length,
double step,
DataType dataType) |
Linspace(@NonNull INDArray z,
double from,
double to) |
Linspace(@NonNull INDArray z,
double from,
double to,
double step) |
Linspace(SameDiff sd,
double from,
double to,
long length) |
Modifier and Type | Method and Description |
---|---|
List<LongShapeDescriptor> |
calculateOutputShape()
Calculate the output shape for this op
|
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 ) |
void |
setX(INDArray x)
set x (the input ndarray)
|
void |
setY(INDArray y)
set y(the pairwise ndarray)
|
String |
tensorflowName()
The opName of this function tensorflow
|
INDArray |
x()
The origin ndarray
|
INDArray |
y()
The pairwise op ndarray
|
calculateOutputDataTypes, calculateOutputShape, isInPlace, isTripleArgRngOp, opType
clearArrays, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, outputVariables, setZ, toCustomOp, toString, z
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, setExtraArgs, setZ, toCustomOp, z
public Linspace()
public Linspace(double from, long length, double step, DataType dataType)
public Linspace(double from, double to, long length, DataType dataType)
public Linspace(@NonNull @NonNull INDArray z, double from, double to)
public Linspace(@NonNull @NonNull INDArray z, double from, double to, double step)
public Linspace(SameDiff sd, double from, double to, long length)
public int opNum()
DifferentialFunction
Op
)opNum
in interface Op
opNum
in class DifferentialFunction
public String opName()
DifferentialFunction
opName
in interface Op
opName
in class DifferentialFunction
public List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunction
calculateOutputShape
in class BaseRandomOp
public String onnxName()
DifferentialFunction
public String tensorflowName()
DifferentialFunction
tensorflowName
in class BaseOp
public List<SDVariable> doDiff(List<SDVariable> f1)
DifferentialFunction
doDiff
in class DifferentialFunction
Copyright © 2020. All rights reserved.