public abstract class BaseModule extends DynamicCustomOp implements Module
Module
that handles Dynamic ops and handles nesting.
This is a logical unit for defining layers
very similar to pytorch's modules, or tensorflow's layers.DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilder
inplaceCall, outputVariables
dimensions, extraArgs, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
BaseModule(String opName,
INDArray[] inputs,
INDArray[] outputs,
List<Double> tArguments,
List<Integer> iArguments,
List<Module> modules) |
BaseModule(String opName,
SameDiff sameDiff,
SDVariable[] args,
boolean inPlace,
List<Module> modules) |
Modifier and Type | Method and Description |
---|---|
void |
addModule(Module module) |
Module[] |
subModules() |
addIArgument, addInputArgument, addOutputArgument, addTArgument, asProperties, assertValidForExecution, builder, calculateOutputShape, doDiff, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, initFromTensorFlow, inputArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, onnxName, opHash, opName, opNum, opType, outputArguments, outputVariables, outputVariables, populateInputsAndOutputsFromSameDiff, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, sameDiffBuilder, setInputArgument, setOutputArgument, tArgs, tensorflowName, toString, updateInputsFromSameDiff
arg, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, f, getValue, hashCode, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
exec, execSameDiff
addIArgument, addInputArgument, addOutputArgument, addTArgument, assertValidForExecution, calculateOutputShape, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, inputArguments, isInplaceCall, numIArguments, numInputArguments, numOutputArguments, numTArguments, opHash, opName, outputArguments, populateInputsAndOutputsFromSameDiff, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, tArgs
Copyright © 2018. All rights reserved.