Package org.nd4j.linalg.api.ops
Class DynamicCustomOp
- java.lang.Object
-
- org.nd4j.autodiff.functions.DifferentialFunction
-
- org.nd4j.linalg.api.ops.DynamicCustomOp
-
- All Implemented Interfaces:
CustomOp
- Direct Known Subclasses:
AdaBeliefUpdater,AdaDeltaUpdater,AdaGradUpdater,AdaMaxUpdater,AdamUpdater,AdjustContrast,AdjustHue,AdjustSaturation,AmsGradUpdater,Angle,ApplyGradientDescent,Assert,Assign,AvgPooling2D,BarnesEdgeForces,BarnesHutGains,BarnesHutSymmetrize,BaseCompatOp,BaseDynamicCustomReduction,BaseDynamicTransformOp,BaseLoss,BaseLossBp,BaseReductionBp,BaseTensorOp,BatchMmul,BatchNorm,BatchToSpace,BatchToSpaceND,BetaInc,BiasAdd,BiasAddGrad,BinCount,BitCast,BitsHammingDistance,BroadcastDynamicShape,BroadcastTo,CbowRound,CheckNumerics,Cholesky,Choose,ClipByAvgNorm,ClipByNorm,ClipByNormBp,ClipByValue,Col2Im,CompareAndBitpack,CompatSparseToDense,CompatStringSplit,Concat,ConcatBp,ConfusionMatrix,Conv1D,Conv1DDerivative,Conv2D,Conv3D,Create,CreateView,CReLU,CReluBp,CropAndResize,Cross,CtcLoss,CtcLossBp,CubeBp,CumProd,CumSum,DecodeBitmap,DecodeThreshold,DeConv2D,DeConv2DTF,DeConv3D,DeConv3DDerivative,DeConv3DTF,DepthToSpace,DepthwiseConv2D,DepthwiseConv2DBp,Diag,DiagPart,Digamma,Dilation2D,DistributionUniform,DivideNoNan,DotProductAttention,DotProductAttentionBp,DrawBoundingBoxes,DynamicPartition,DynamicPartitionBp,DynamicStitch,Eig,ELU,EluBp,EmbeddingLookup,EncodeBitmap,EncodeThreshold,ExpandDims,ExternalErrorsFunction,ExtractImagePatches,Eye,FakeQuantWithMinMaxArgs,FakeQuantWithMinMaxVars,FakeQuantWithMinMaxVarsPerChannel,Fill,Flatten,Flatten2D,FusedBatchNorm,Gather,GatherNd,GradientBackwardsMarker,GRU,GRUBp,GRUCell,HardSigmoidBp,HardTanhBp,HashCode,Histogram,HistogramFixedWidth,HsvToRgb,IdentityN,Igamma,Igammac,Im2col,Im2colBp,ImageResize,InTopK,Invoke,IsMax,IsNonDecreasing,IsNumericTensor,IsStrictlyIncreasing,KnnMinDistance,L2Loss,LayerNorm,LayerNormBp,LeakyReLUBp,Lgamma,LinearSolve,Linspace,ListDiff,LocalResponseNormalization,Logdet,LogicalAnd,LogicalNot,LogicalOr,LogicalXor,LogMatrixDeterminant,LogSoftMax,LogSoftMaxDerivative,LogSumExp,LSTMBlock,LSTMBlockCell,LSTMCell,LSTMLayer,LSTMLayerBp,Lstsq,Lu,MatrixBandPart,MatrixDeterminant,MatrixDiag,MatrixDiagPart,MatrixInverse,MatrixSetDiag,MaximumBp,MaxPooling2D,MaxPoolWithArgmax,MergeAddBp,MergeAvg,MergeAvgBp,MergeMax,MergeMaxBp,MergeMaxIndex,MergeSum,MeshGrid,MinMaxDataType,MirrorPad,Mmul,MmulBp,Moments,MultiHeadDotProductAttention,MultiHeadDotProductAttentionBp,NadamUpdater,NesterovsUpdater,NonMaxSuppression,NonMaxSuppressionV3,NonMaxSuppressionWithOverlaps,NoOp,NormalizeMoments,NthElement,OneHot,OnesAs,OnesLike,Pad,ParallelConcat,ParallelStack,Polygamma,Pooling2D,Pooling3D,Pow,PRelu,PReluBp,PrintAffinity,PrintVariable,Qr,RandomBernoulli,RandomCrop,RandomExponential,RandomGamma,RandomMultinomial,RandomNormal,RandomPoisson,RandomShuffle,RandomStandardNormal,Range,Rank,RationalTanhBp,RectifiedLinearDerivative,RectifiedTanhBp,ReductionShape,Relu6Derivative,Repeat,Reshape,ResizeArea,ResizeBicubic,ResizeBilinear,ResizeNearestNeighbor,RestoreV2,Reverse,ReverseBp,ReverseSequence,ReverseV2,RgbToGrayscale,RgbToHsv,RgbToYiq,RgbToYuv,RmsPropUpdater,Roll,SaveV2,ScatterAdd,ScatterDiv,ScatterMax,ScatterMin,ScatterMul,ScatterNd,ScatterNdAdd,ScatterNdSub,ScatterNdUpdate,ScatterSub,ScatterUpdate,SegmentMax,SegmentMaxBp,SegmentMean,SegmentMeanBp,SegmentMin,SegmentMinBp,SegmentProd,SegmentProdBp,SegmentSum,SegmentSumBp,Select,SeluBp,SequenceMask,SetShape,SgdUpdater,Shape,ShapeN,SigmoidDerivative,Size,SizeAt,SkipGramRound,Slice,SliceBp,SoftmaxBp,SoftmaxCrossEntropyWithLogitsLoss,SoftmaxCrossEntropyWithLogitsLossBp,SoftPlusBp,SoftSignBp,SpaceToBatch,SpaceToBatchND,SpaceToDepth,SparseSoftmaxCrossEntropyLossWithLogits,SparseSoftmaxCrossEntropyLossWithLogitsBp,Split,SplitV,SpTreeCell,SqrtM,SquaredDifferenceBpOp,Squeeze,SRU,SRUCell,Stack,Standardize,StandardizeBp,StridedSlice,StridedSliceBp,SufficientStatistics,Svd,TanhDerivative,TensorMmul,TensorMmulBp,ThresholdRelu,ThresholdReluBp,Tile,TileBp,ToggleBits,TopK,Trace,Transpose,Tri,TriangularSolve,Triu,TriuBp,Unique,UniqueWithCounts,UnsortedSegmentMax,UnsortedSegmentMaxBp,UnsortedSegmentMean,UnsortedSegmentMeanBp,UnsortedSegmentMin,UnsortedSegmentMinBp,UnsortedSegmentProd,UnsortedSegmentProdBp,UnsortedSegmentSqrtN,UnsortedSegmentSqrtNBp,UnsortedSegmentSum,UnsortedSegmentSumBp,Unstack,Upsampling2d,Upsampling2dDerivative,Upsampling3d,Upsampling3dBp,Where,WhereNumpy,XwPlusB,YiqToRgb,YuvToRgb,ZeroFraction,ZerosLike
public class DynamicCustomOp extends DifferentialFunction implements CustomOp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicCustomOp.DynamicCustomOpsBuilder
-
Field Summary
Fields Modifier and Type Field Description protected List<Integer>axisprotected List<Boolean>bArgumentsprotected List<DataType>dArgumentsprotected List<Long>iArgumentsprotected booleaninplaceCallprotected List<INDArray>inputArgumentsprotected List<INDArray>outputArgumentsprotected SDVariable[]outputVariablesprotected List<String>sArgumentsprotected List<Double>tArguments-
Fields inherited from class org.nd4j.autodiff.functions.DifferentialFunction
dimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue
-
-
Constructor Summary
Constructors Modifier Constructor Description DynamicCustomOp()protectedDynamicCustomOp(String opName)DynamicCustomOp(String opName, SameDiff sameDiff, SDVariable[] args)DynamicCustomOp(String opName, SameDiff sameDiff, SDVariable[] args, boolean inPlace)Initialize this forSameDiffexecution Any extra int or float arguments for operations must be added to the respective TArguments or IArguments lists upon constructionDynamicCustomOp(String opName, INDArray[] inputs, INDArray[] outputs)Initialize this operation for execution (pre created ndarrays)DynamicCustomOp(String opName, INDArray[] inputs, INDArray[] outputs, List<Double> tArguments, int[] iArguments)DynamicCustomOp(String opName, INDArray[] inputs, INDArray[] outputs, List<Double> tArguments, List<Integer> iArguments)Initialize this custom op with all of the inputs, outputs, and respective arguments for executionDynamicCustomOp(String opName, INDArray input, INDArray output, List<Double> tArguments, int[] iArguments)DynamicCustomOp(SameDiff sameDiff, SDVariable arg)DynamicCustomOp(SameDiff sameDiff, SDVariable[] args)DynamicCustomOp(SameDiff sameDiff, SDVariable[] args, boolean inPlace)DynamicCustomOp(INDArray[] inputs, INDArray[] outputs)Initialize this operation for execution (pre created ndarrays)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBArgument(boolean... arg)voidaddDArgument(DataType... arg)voidaddIArgument(int... arg)voidaddIArgument(long... arg)voidaddInputArgument(INDArray... arg)voidaddOutputArgument(INDArray... arg)protected voidaddOutputsToOp()voidaddSArgument(String... args)voidaddTArgument(double... arg)voidassertValidForExecution()Asserts a valid state for execution, otherwise throws anND4JIllegalStateExceptionboolean[]bArgs()static DynamicCustomOp.DynamicCustomOpsBuilderbuilder(String opName)This method takes custom opname, and return Op DynamicCustomOpsBuilder instanceList<LongShapeDescriptor>calculateOutputShape()Calculate the output shape for this opList<LongShapeDescriptor>calculateOutputShape(OpContext oc)Calculate the output shape for this opvoidclearArrays()Clear the input and output INDArrays, if any are setvoidcomputeArrays()voidconfigureFromArguments()This allows a custom op to configure relevant fields from its arguments.DataType[]dArgs()List<SDVariable>doDiff(List<SDVariable> f1)The actual implementation for automatic differentiation.INDArraygenerateFake(long... shape)Generate fake data forcomputeArrays()of the given shape with the data typeNd4j.defaultFloatingPointType()INDArraygenerateFake(DataType dataType, long... shape)Generate fake data forcomputeArrays()of the the given shape with the given data typeBooleangetBArgument(int index)CustomOpDescriptorgetDescriptor()Get the custom op descriptor if one is available.LonggetIArgument(int index)INDArraygetInputArgument(int index)INDArraygetOutputArgument(int index)StringgetSArgument(int index)DoublegetTArgument(int index)ObjectgetValue(Field property)Get the value for a given property for this functionlong[]iArgs()voidinitFromOnnx(Onnx.NodeProto node, SameDiff initWith, Map<String,Onnx.AttributeProto> attributesForNode, Onnx.GraphProto graph)Iniitialize the function from the givenOnnx.NodeProtovoidinitFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String,AttrValue> attributesForNode, GraphDef graph)Initialize the function from the givenNodeDefList<INDArray>inputArguments()Map<String,Map<String,PropertyMapping>>mappingsForFunction()Returns the mappings for a given function ( for tensorflow and onnx import mapping properties of this function).intnumBArguments()intnumDArguments()intnumIArguments()intnumInputArguments()intnumOutputArguments()intnumSArguments()intnumTArguments()StringonnxName()The opName of this function in onnxlongopHash()This method returns LongHash of the opName()StringopName()This method returns op opName as stringintopNum()The number of the op (mainly for old legacy XYZ ops likeOp)Op.TypeopType()The type of the opList<INDArray>outputArguments()SDVariable[]outputVariables()Return the output variables for this differential function.SDVariable[]outputVariables(String baseName)Return the output functions for this differential function.Map<String,Object>propertiesForFunction()Returns the properties for a given functionvoidremoveIArgument(Integer arg)voidremoveInputArgument(INDArray arg)voidremoveOutputArgument(INDArray arg)voidremoveSArgument(String argument)voidremoveTArgument(Double arg)String[]sArgs()voidsetInputArgument(int index, INDArray input)voidsetInputArguments(INDArray... inputs)voidsetOutputArgument(int index, INDArray output)voidsetPropertiesForFunction(Map<String,Object> properties)voidsetValueFor(Field target, Object value)Set the value for this function.double[]tArgs()StringtensorflowName()The opName of this function tensorflowStringtoString()protected static <T> T[]wrapFilterNull(T... in)protected static SDVariable[]wrapOrNull(SDVariable in)protected static INDArray[]wrapOrNull(INDArray in)-
Methods inherited from class org.nd4j.autodiff.functions.DifferentialFunction
arg, arg, argNames, args, attributeAdaptersForFunction, calculateOutputDataTypes, configFieldName, configureWithSameDiff, diff, dup, equals, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getNumOutputs, getStringFromProperty, hashCode, isConfigProperties, larg, onnxNames, outputs, outputVariable, outputVariablesNames, rarg, replaceArg, setInstanceId, tensorflowNames
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nd4j.linalg.api.ops.CustomOp
isInplaceCall
-
-
-
-
Field Detail
-
inplaceCall
protected boolean inplaceCall
-
outputVariables
protected SDVariable[] outputVariables
-
-
Constructor Detail
-
DynamicCustomOp
public DynamicCustomOp()
-
DynamicCustomOp
public DynamicCustomOp(SameDiff sameDiff, SDVariable arg)
-
DynamicCustomOp
public DynamicCustomOp(SameDiff sameDiff, SDVariable[] args)
-
DynamicCustomOp
public DynamicCustomOp(String opName, SameDiff sameDiff, SDVariable[] args)
-
DynamicCustomOp
public DynamicCustomOp(String opName, INDArray input, INDArray output, List<Double> tArguments, int[] iArguments)
-
DynamicCustomOp
public DynamicCustomOp(String opName, INDArray[] inputs, INDArray[] outputs, List<Double> tArguments, int[] iArguments)
-
DynamicCustomOp
public DynamicCustomOp(String opName, INDArray[] inputs, INDArray[] outputs, List<Double> tArguments, List<Integer> iArguments)
Initialize this custom op with all of the inputs, outputs, and respective arguments for execution- Parameters:
opName- the opName of the op to executeinputs- the inputs to the opoutputs- the outputs of the optArguments- the input float argumentsiArguments- the input int arguments
-
DynamicCustomOp
public DynamicCustomOp(INDArray[] inputs, INDArray[] outputs)
Initialize this operation for execution (pre created ndarrays)- Parameters:
inputs- the inputsoutputs- the outputs of the op, may be null
-
DynamicCustomOp
public DynamicCustomOp(String opName, INDArray[] inputs, INDArray[] outputs)
Initialize this operation for execution (pre created ndarrays)- Parameters:
opName- the operation opName to use for invocationinputs- the inputsoutputs- the outputs of the op, may be null
-
DynamicCustomOp
public DynamicCustomOp(String opName, SameDiff sameDiff, SDVariable[] args, boolean inPlace)
Initialize this forSameDiffexecution Any extra int or float arguments for operations must be added to the respective TArguments or IArguments lists upon construction- Parameters:
opName- the operation opNamesameDiff- the samediff instance to useargs- the arguments to useinPlace- whether the operation is in place or not
-
DynamicCustomOp
public DynamicCustomOp(SameDiff sameDiff, SDVariable[] args, boolean inPlace)
-
DynamicCustomOp
protected DynamicCustomOp(String opName)
-
-
Method Detail
-
opName
public String opName()
This method returns op opName as string- Specified by:
opNamein interfaceCustomOp- Overrides:
opNamein classDifferentialFunction- Returns:
-
outputVariables
public SDVariable[] outputVariables()
Description copied from class:DifferentialFunctionReturn the output variables for this differential function. Note that this op *may* dynamically generate variable outputs.- Overrides:
outputVariablesin classDifferentialFunction- Returns:
-
outputVariables
public SDVariable[] outputVariables(String baseName)
Description copied from class:DifferentialFunctionReturn the output functions for this differential function.- Specified by:
outputVariablesin classDifferentialFunction- Returns:
-
addOutputsToOp
protected void addOutputsToOp()
-
generateFake
public INDArray generateFake(long... shape)
Generate fake data forcomputeArrays()of the given shape with the data typeNd4j.defaultFloatingPointType()- Parameters:
shape- the shape to use- Returns:
- the generated data
-
generateFake
public INDArray generateFake(DataType dataType, long... shape)
Generate fake data forcomputeArrays()of the the given shape with the given data type- Parameters:
shape- the shape to usedataType- the data type of the output array- Returns:
- the generated data
-
computeArrays
public void computeArrays()
-
opHash
public long opHash()
This method returns LongHash of the opName()
-
numDArguments
public int numDArguments()
- Specified by:
numDArgumentsin interfaceCustomOp
-
numSArguments
public int numSArguments()
- Specified by:
numSArgumentsin interfaceCustomOp
-
outputArguments
public List<INDArray> outputArguments()
- Specified by:
outputArgumentsin interfaceCustomOp
-
inputArguments
public List<INDArray> inputArguments()
- Specified by:
inputArgumentsin interfaceCustomOp
-
addIArgument
public void addIArgument(int... arg)
- Specified by:
addIArgumentin interfaceCustomOp
-
addIArgument
public void addIArgument(long... arg)
- Specified by:
addIArgumentin interfaceCustomOp
-
removeIArgument
public void removeIArgument(Integer arg)
- Specified by:
removeIArgumentin interfaceCustomOp
-
addSArgument
public void addSArgument(String... args)
- Specified by:
addSArgumentin interfaceCustomOp
-
removeSArgument
public void removeSArgument(String argument)
- Specified by:
removeSArgumentin interfaceCustomOp
-
getSArgument
public String getSArgument(int index)
- Specified by:
getSArgumentin interfaceCustomOp
-
getIArgument
public Long getIArgument(int index)
- Specified by:
getIArgumentin interfaceCustomOp
-
numIArguments
public int numIArguments()
- Specified by:
numIArgumentsin interfaceCustomOp
-
numBArguments
public int numBArguments()
- Specified by:
numBArgumentsin interfaceCustomOp
-
addTArgument
public void addTArgument(double... arg)
- Specified by:
addTArgumentin interfaceCustomOp
-
addDArgument
public void addDArgument(DataType... arg)
- Specified by:
addDArgumentin interfaceCustomOp
-
removeTArgument
public void removeTArgument(Double arg)
- Specified by:
removeTArgumentin interfaceCustomOp
-
getTArgument
public Double getTArgument(int index)
- Specified by:
getTArgumentin interfaceCustomOp
-
numTArguments
public int numTArguments()
- Specified by:
numTArgumentsin interfaceCustomOp
-
addInputArgument
public void addInputArgument(INDArray... arg)
- Specified by:
addInputArgumentin interfaceCustomOp
-
removeInputArgument
public void removeInputArgument(INDArray arg)
- Specified by:
removeInputArgumentin interfaceCustomOp
-
getInputArgument
public INDArray getInputArgument(int index)
- Specified by:
getInputArgumentin interfaceCustomOp- Overrides:
getInputArgumentin classDifferentialFunction
-
setInputArgument
public void setInputArgument(int index, INDArray input)
-
setInputArguments
public void setInputArguments(INDArray... inputs)
-
setOutputArgument
public void setOutputArgument(int index, INDArray output)
-
numInputArguments
public int numInputArguments()
- Specified by:
numInputArgumentsin interfaceCustomOp
-
addOutputArgument
public void addOutputArgument(INDArray... arg)
- Specified by:
addOutputArgumentin interfaceCustomOp
-
removeOutputArgument
public void removeOutputArgument(INDArray arg)
- Specified by:
removeOutputArgumentin interfaceCustomOp
-
getOutputArgument
public INDArray getOutputArgument(int index)
- Specified by:
getOutputArgumentin interfaceCustomOp
-
numOutputArguments
public int numOutputArguments()
- Specified by:
numOutputArgumentsin interfaceCustomOp
-
opNum
public int opNum()
Description copied from class:DifferentialFunctionThe number of the op (mainly for old legacy XYZ ops likeOp)- Overrides:
opNumin classDifferentialFunction- Returns:
-
builder
public static DynamicCustomOp.DynamicCustomOpsBuilder builder(String opName)
This method takes custom opname, and return Op DynamicCustomOpsBuilder instance- Parameters:
opName-- Returns:
-
calculateOutputShape
public List<LongShapeDescriptor> calculateOutputShape()
Description copied from class:DifferentialFunctionCalculate the output shape for this op- Specified by:
calculateOutputShapein interfaceCustomOp- Overrides:
calculateOutputShapein classDifferentialFunction- Returns:
- List of output shape descriptors
-
calculateOutputShape
public List<LongShapeDescriptor> calculateOutputShape(OpContext oc)
Description copied from interface:CustomOpCalculate the output shape for this op- Specified by:
calculateOutputShapein interfaceCustomOp- Overrides:
calculateOutputShapein classDifferentialFunction- Returns:
- Output array shapes
-
getDescriptor
public CustomOpDescriptor getDescriptor()
Description copied from interface:CustomOpGet the custom op descriptor if one is available.- Specified by:
getDescriptorin interfaceCustomOp- Returns:
-
assertValidForExecution
public void assertValidForExecution()
Description copied from interface:CustomOpAsserts a valid state for execution, otherwise throws anND4JIllegalStateException- Specified by:
assertValidForExecutionin interfaceCustomOp
-
doDiff
public List<SDVariable> doDiff(List<SDVariable> f1)
Description copied from class:DifferentialFunctionThe actual implementation for automatic differentiation.- Specified by:
doDiffin classDifferentialFunction- Returns:
-
addBArgument
public void addBArgument(boolean... arg)
- Specified by:
addBArgumentin interfaceCustomOp
-
getBArgument
public Boolean getBArgument(int index)
- Specified by:
getBArgumentin interfaceCustomOp
-
onnxName
public String onnxName()
Description copied from class:DifferentialFunctionThe opName of this function in onnx- Specified by:
onnxNamein classDifferentialFunction- Returns:
-
tensorflowName
public String tensorflowName()
Description copied from class:DifferentialFunctionThe opName of this function tensorflow- Specified by:
tensorflowNamein classDifferentialFunction- Returns:
-
opType
public Op.Type opType()
Description copied from class:DifferentialFunctionThe type of the op- Overrides:
opTypein classDifferentialFunction- Returns:
-
initFromTensorFlow
public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String,AttrValue> attributesForNode, GraphDef graph)
Description copied from class:DifferentialFunctionInitialize the function from the givenNodeDef- Specified by:
initFromTensorFlowin classDifferentialFunction
-
initFromOnnx
public void initFromOnnx(Onnx.NodeProto node, SameDiff initWith, Map<String,Onnx.AttributeProto> attributesForNode, Onnx.GraphProto graph)
Description copied from class:DifferentialFunctionIniitialize the function from the givenOnnx.NodeProto- Specified by:
initFromOnnxin classDifferentialFunction
-
clearArrays
public void clearArrays()
Description copied from class:DifferentialFunctionClear the input and output INDArrays, if any are set- Specified by:
clearArraysin interfaceCustomOp- Specified by:
clearArraysin classDifferentialFunction
-
wrapOrNull
protected static SDVariable[] wrapOrNull(SDVariable in)
-
wrapFilterNull
protected static <T> T[] wrapFilterNull(T... in)
-
configureFromArguments
public void configureFromArguments()
Description copied from interface:CustomOpThis allows a custom op to configure relevant fields from its arguments. This is needed when ops are created via reflection for things like model import.- Specified by:
configureFromArgumentsin interfaceCustomOp
-
mappingsForFunction
public Map<String,Map<String,PropertyMapping>> mappingsForFunction()
Description copied from class:DifferentialFunctionReturns the mappings for a given function ( for tensorflow and onnx import mapping properties of this function). The mapping is indexed by field name. If the function has no properties, this returned map will be empty. Note that some functions have multiple names. This function returns a map indexed by each alias it has for a given name. These names include both onnx and tensorflow names (which might be 1 or more)- Overrides:
mappingsForFunctionin classDifferentialFunction- Returns:
-
setPropertiesForFunction
public void setPropertiesForFunction(Map<String,Object> properties)
- Overrides:
setPropertiesForFunctionin classDifferentialFunction
-
getValue
public Object getValue(Field property)
Description copied from class:DifferentialFunctionGet the value for a given property for this function- Overrides:
getValuein classDifferentialFunction- Parameters:
property- the property to get- Returns:
- the value for the function if it exists
-
setValueFor
public void setValueFor(Field target, Object value)
Description copied from class:DifferentialFunctionSet the value for this function. Note that if value is null anND4JIllegalStateExceptionwill be thrown.- Overrides:
setValueForin classDifferentialFunction- Parameters:
target- the target fieldvalue- the value to set
-
propertiesForFunction
public Map<String,Object> propertiesForFunction()
Description copied from class:DifferentialFunctionReturns the properties for a given function- Overrides:
propertiesForFunctionin classDifferentialFunction- Returns:
-
-