public class ImageResize extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilderaxis, bArguments, dArguments, iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, sArguments, tArgumentsdimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
ImageResize(@NonNull INDArray in,
@NonNull INDArray size,
boolean preserveAspectRatio,
boolean antialias,
ImageResizeMethod method) |
ImageResize(@NonNull INDArray in,
@NonNull INDArray size,
CoordinateTransformationMode coorMode,
NearestMode nearestMode,
boolean preserveAspectRatio,
boolean antialias) |
ImageResize(@NonNull INDArray in,
@NonNull INDArray size,
double bicubicCoefficient,
boolean exclude_outside,
boolean preserveAspectRatio) |
ImageResize(@NonNull INDArray in,
@NonNull INDArray size,
double bicubicCoefficient,
CoordinateTransformationMode coorMode,
boolean exclude_outside,
boolean preserveAspectRatio) |
ImageResize(@NonNull INDArray in,
@NonNull INDArray size,
NearestMode nearestMode,
boolean preserveAspectRatio,
boolean antialias) |
ImageResize(@NonNull SameDiff sameDiff,
@NonNull SDVariable in,
@NonNull SDVariable size,
boolean preserveAspectRatio,
boolean antialias,
ImageResizeMethod method) |
ImageResize(@NonNull SameDiff sameDiff,
@NonNull SDVariable in,
@NonNull SDVariable size,
double bicubicCoefficient,
boolean preserveAspectRatio,
boolean antialias) |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
calculateOutputDataTypes(List<DataType> dataTypes)
Calculate the data types for the output arrays.
|
String |
opName()
This method returns op opName as string
|
addBArgument, addDArgument, addIArgument, addIArgument, addInputArgument, addOutputArgument, addSArgument, addTArgument, assertValidForExecution, bArgs, builder, calculateOutputShape, calculateOutputShape, clearArrays, computeArrays, configureFromArguments, dArgs, doDiff, generateFake, generateFake, getBArgument, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getSArgument, getTArgument, getValue, iArgs, initFromOnnx, initFromTensorFlow, inputArguments, mappingsForFunction, numBArguments, numDArguments, numIArguments, numInputArguments, numOutputArguments, numSArguments, numTArguments, onnxName, opHash, opNum, opType, outputArguments, outputVariables, outputVariables, propertiesForFunction, removeIArgument, removeInputArgument, removeOutputArgument, removeSArgument, removeTArgument, sArgs, setInputArgument, setInputArguments, setOutputArgument, setPropertiesForFunction, setValueFor, tArgs, tensorflowName, toString, wrapFilterNull, wrapOrNull, wrapOrNullarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, configureWithSameDiff, diff, dup, equals, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getNumOutputs, getStringFromProperty, hashCode, isConfigProperties, larg, onnxNames, outputs, outputVariable, outputVariablesNames, rarg, replaceArg, setInstanceId, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallpublic ImageResize(@NonNull
@NonNull SameDiff sameDiff,
@NonNull
@NonNull SDVariable in,
@NonNull
@NonNull SDVariable size,
boolean preserveAspectRatio,
boolean antialias,
ImageResizeMethod method)
public ImageResize(@NonNull
@NonNull INDArray in,
@NonNull
@NonNull INDArray size,
boolean preserveAspectRatio,
boolean antialias,
ImageResizeMethod method)
public ImageResize(@NonNull
@NonNull SameDiff sameDiff,
@NonNull
@NonNull SDVariable in,
@NonNull
@NonNull SDVariable size,
double bicubicCoefficient,
boolean preserveAspectRatio,
boolean antialias)
public ImageResize(@NonNull
@NonNull INDArray in,
@NonNull
@NonNull INDArray size,
double bicubicCoefficient,
boolean exclude_outside,
boolean preserveAspectRatio)
public ImageResize(@NonNull
@NonNull INDArray in,
@NonNull
@NonNull INDArray size,
double bicubicCoefficient,
CoordinateTransformationMode coorMode,
boolean exclude_outside,
boolean preserveAspectRatio)
public ImageResize(@NonNull
@NonNull INDArray in,
@NonNull
@NonNull INDArray size,
NearestMode nearestMode,
boolean preserveAspectRatio,
boolean antialias)
public ImageResize(@NonNull
@NonNull INDArray in,
@NonNull
@NonNull INDArray size,
CoordinateTransformationMode coorMode,
NearestMode nearestMode,
boolean preserveAspectRatio,
boolean antialias)
public String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOppublic List<DataType> calculateOutputDataTypes(List<DataType> dataTypes)
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 DifferentialFunctiondataTypes - The data types of the inputsCopyright © 2022. All rights reserved.