public class OneHot extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilderinplaceCall, outputVariablesdimensions, extraArgs, inPlace, sameDiff, scalarValue| Constructor and Description |
|---|
OneHot() |
OneHot(SameDiff sameDiff,
SDVariable indices,
int depth) |
OneHot(SameDiff sameDiff,
SDVariable indices,
int depth,
int axis,
double on,
double off) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArgs() |
void |
initFromTensorFlow(NodeDef nodeDef,
SameDiff initWith,
Map<String,AttrValue> attributesForNode,
GraphDef graph)
Initialize the function from the given
NodeDef |
Map<String,Map<String,PropertyMapping>> |
mappingsForFunction()
Returns the mappings for a given function (
for tensorflow and onnx import mapping properties
of this function).
|
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
|
addIArgument, addInputArgument, addOutputArgument, addTArgument, asProperties, assertValidForExecution, builder, calculateOutputShape, doDiff, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, 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, onnxNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallpublic OneHot()
public OneHot(SameDiff sameDiff, SDVariable indices, int depth)
public OneHot(SameDiff sameDiff, SDVariable indices, int depth, int axis, double on, double off)
protected void addArgs()
public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String,AttrValue> attributesForNode, GraphDef graph)
DifferentialFunctionNodeDefinitFromTensorFlow in class DynamicCustomOppublic Map<String,Map<String,PropertyMapping>> mappingsForFunction()
DifferentialFunctionmappingsForFunction in class DifferentialFunctionpublic String tensorflowName()
DifferentialFunctiontensorflowName in class DynamicCustomOppublic String onnxName()
DifferentialFunctiononnxName in class DynamicCustomOppublic String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOpCopyright © 2018. All rights reserved.