public class TensorArray extends BaseTensorOp
DynamicCustomOp.DynamicCustomOpsBuilder| Modifier and Type | Field and Description |
|---|---|
protected DataType |
tensorArrayDataType |
axis, bArguments, dArguments, iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArgumentsdimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
TensorArray() |
TensorArray(DataType dataType) |
TensorArray(SameDiff sameDiff,
DataType dataType) |
TensorArray(String name,
SameDiff sameDiff,
DataType dataType) |
TensorArray(TensorArray ta) |
TensorArray(TensorArray ta,
SDVariable[] inputs) |
calculateOutputShape, doDiff, onnxNameaddBArgument, addDArgument, addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, assertValidForExecution, bArgs, builder, calculateOutputShape, clearArrays, dArgs, getBArgument, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, inputArguments, numBArguments, numDArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, opHash, opNum, outputArguments, outputVariables, outputVariables, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, setInputArgument, setInputArguments, setOutputArgument, tArgs, wrapFilterNull, wrapOrNull, wrapOrNullarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, getValue, hashCode, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallprotected DataType tensorArrayDataType
public TensorArray(TensorArray ta)
public TensorArray(TensorArray ta, SDVariable[] inputs)
public TensorArray()
public TensorArray(DataType dataType)
public String tensorflowName()
DifferentialFunctiontensorflowName in class DynamicCustomOppublic void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String,AttrValue> attributesForNode, GraphDef graph)
DifferentialFunctionNodeDefinitFromTensorFlow in class BaseTensorOppublic String toString()
toString in class BaseTensorOppublic String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOppublic Op.Type opType()
DifferentialFunctionopType in class BaseTensorOppublic SameDiff getSameDiff()
public SDVariable read(int index)
public SDVariable read(SDVariable index)
public SDVariable gather(SDVariable flow, int... indices)
public SDVariable gather(SDVariable flow, SDVariable indices)
public SDVariable stack(SDVariable flow)
public SDVariable concat(SDVariable flow)
public SDVariable write(SDVariable flow, int index, SDVariable value)
public SDVariable write(SDVariable flow, SDVariable index, SDVariable value)
public SDVariable scatter(SDVariable flow, SDVariable value, int... indices)
public SDVariable scatter(SDVariable flow, SDVariable value, SDVariable indices)
public SDVariable unstack(SDVariable flow, SDVariable value)
public List<DataType> calculateOutputDataTypes(List<DataType> inputDataType)
DifferentialFunctionDifferentialFunction.calculateOutputShape(), this method differs in that it does not
require the input arrays to be populated.
This is important as it allows us to do greedy datatype inference for the entire net - even if arrays are not
available.calculateOutputDataTypes in class DifferentialFunctioninputDataType - The data types of the inputspublic int getNumOutputs()
getNumOutputs in class BaseTensorOpCopyright © 2021. All rights reserved.