public class SpaceToBatch extends DynamicCustomOp
Example: input: [[[[1], [2]], [[3], [4]]]] input shape: [1, 2, 2, 1] blocks: [2, 2] padding: [[0, 0], [0, 0]]
output: [[[[1]]], [[[2]]], [[[3]]], [[[4]]]] output shape: [4, 1, 1, 1] *
DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilder| Modifier and Type | Field and Description |
|---|---|
protected int[] |
blocks |
protected int[][] |
padding |
inplaceCall, outputVariablesdimensions, extraArgs, inPlace, sameDiff, scalarValue| Constructor and Description |
|---|
SpaceToBatch() |
SpaceToBatch(SameDiff sameDiff,
SDVariable[] args,
int[] blocks,
int[][] padding,
boolean inPlace) |
| Modifier and Type | Method and Description |
|---|---|
List<SDVariable> |
doDiff(List<SDVariable> i_v)
The actual implementation for automatic differentiation.
|
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, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, initFromTensorFlow, 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, waitisInplaceCallpublic SpaceToBatch()
public SpaceToBatch(SameDiff sameDiff, SDVariable[] args, int[] blocks, int[][] padding, boolean inPlace)
public String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOppublic String onnxName()
DifferentialFunctiononnxName in class DynamicCustomOppublic String tensorflowName()
DifferentialFunctiontensorflowName in class DynamicCustomOppublic List<SDVariable> doDiff(List<SDVariable> i_v)
DifferentialFunctiondoDiff in class DynamicCustomOpCopyright © 2018. All rights reserved.