public class Linear extends BaseModule
DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilderinplaceCall, outputVariablesdimensions, extraArgs, inPlace, sameDiff, scalarValue| Constructor and Description |
|---|
Linear(int nIn,
int nOut,
WeightInitScheme weightInitScheme,
WeightInitScheme biasWeightInitScheme) |
Linear(SameDiff sameDiff,
int nIn,
int nOut,
WeightInitScheme weightInitScheme,
WeightInitScheme biasWeightInitScheme) |
| Modifier and Type | Method and Description |
|---|---|
List<int[]> |
calculateOutputShape()
Calculate
the output shape for this op
|
List<SDVariable> |
doDiff(List<SDVariable> f1)
The actual implementation for automatic differentiation.
|
void |
exec(INDArray... inputs) |
void |
execSameDiff(SDVariable... input) |
void |
initFromOnnx(OnnxProto3.NodeProto node,
SameDiff initWith,
Map<String,OnnxProto3.AttributeProto> attributesForNode,
OnnxProto3.GraphProto graph)
Iniitialize the function from the given
OnnxProto3.NodeProto |
void |
initFromTensorFlow(NodeDef nodeDef,
SameDiff initWith,
Map<String,AttrValue> attributesForNode,
GraphDef graph)
Initialize the function from the given
NodeDef |
String |
onnxName()
The opName of this function in onnx
|
String |
opName()
This method returns op opName as string
|
String |
tensorflowName()
The opName of this function tensorflow
|
addModule, subModulesaddIArgument, addInputArgument, addOutputArgument, addTArgument, asProperties, assertValidForExecution, builder, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, inputArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, opHash, opNum, opType, outputArguments, outputVariables, outputVariables, populateInputsAndOutputsFromSameDiff, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, sameDiffBuilder, setInputArgument, setOutputArgument, tArgs, toString, updateInputsFromSameDiffarg, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, f, getValue, hashCode, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddIArgument, addInputArgument, addOutputArgument, addTArgument, assertValidForExecution, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, inputArguments, isInplaceCall, numIArguments, numInputArguments, numOutputArguments, numTArguments, opHash, outputArguments, populateInputsAndOutputsFromSameDiff, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, tArgspublic Linear(int nIn,
int nOut,
WeightInitScheme weightInitScheme,
WeightInitScheme biasWeightInitScheme)
public Linear(SameDiff sameDiff, int nIn, int nOut, WeightInitScheme weightInitScheme, WeightInitScheme biasWeightInitScheme)
public String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOppublic void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String,AttrValue> attributesForNode, GraphDef graph)
DifferentialFunctionNodeDefinitFromTensorFlow in class DynamicCustomOppublic void initFromOnnx(OnnxProto3.NodeProto node, SameDiff initWith, Map<String,OnnxProto3.AttributeProto> attributesForNode, OnnxProto3.GraphProto graph)
DifferentialFunctionOnnxProto3.NodeProtoinitFromOnnx in class DynamicCustomOppublic List<SDVariable> doDiff(List<SDVariable> f1)
DifferentialFunctiondoDiff in class DynamicCustomOppublic List<int[]> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in interface CustomOpcalculateOutputShape in class DynamicCustomOppublic String onnxName()
DifferentialFunctiononnxName in class DynamicCustomOppublic String tensorflowName()
DifferentialFunctiontensorflowName in class DynamicCustomOppublic void exec(INDArray... inputs)
public void execSameDiff(SDVariable... input)
Copyright © 2018. All rights reserved.