public class Linspace extends BaseRandomOp
dataType, shapedimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexIddimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, 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<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) |
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, isInPlace, isTripleArgRngOp, opTypeclearArrays, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, outputVariables, setZ, toCustomOp, toString, 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, setZ, toCustomOp, zpublic 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()
DifferentialFunctionOp)opNum in interface OpopNum in class DifferentialFunctionpublic String opName()
DifferentialFunctionopName in interface OpopName in class DifferentialFunctionpublic String onnxName()
DifferentialFunctionpublic String tensorflowName()
DifferentialFunctiontensorflowName in class BaseOppublic List<LongShapeDescriptor> calculateOutputShape(OpContext oc)
calculateOutputShape in class DifferentialFunctionpublic List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in class BaseRandomOppublic List<SDVariable> doDiff(List<SDVariable> f1)
DifferentialFunctiondoDiff in class DifferentialFunctionCopyright © 2021. All rights reserved.