@Namespace(value="nvinfer1") @NoOffset @Properties(inherit=nvinfer.class) public class IDequantizeLayer extends ILayer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
IDequantizeLayer(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAxis()
\brief Get the quantization axis.
|
Dims64 |
getBlockShape()
\brief Get the shape of the quantization block.
|
nvinfer.DataType |
getToType()
\brief Return the Dequantize layer output type.
|
void |
setAxis(int axis)
\brief Set the quantization axis.
|
boolean |
setBlockShape(Dims64 blockShape)
\brief Set the shape of the quantization block.
|
void |
setToType(int toType) |
void |
setToType(nvinfer.DataType toType)
\brief Set the Dequantize layer output type.
|
getInput, getMetadata, getName, getNbInputs, getNbOutputs, getOutput, getOutputType, getPrecision, getType, outputTypeIsSet, precisionIsSet, resetOutputType, resetPrecision, setInput, setMetadata, setMetadata, setName, setName, setOutputType, setOutputType, setPrecision, setPrecisionaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, trimMemory, withDeallocator, zeropublic IDequantizeLayer(Pointer p)
Pointer(Pointer).@NoException(value=true) public int getAxis()
@NoException(value=true) public void setAxis(int axis)
@Cast(value="bool") @NoException(value=true) public boolean setBlockShape(@Cast(value="const nvinfer1::Dims*") @ByRef Dims64 blockShape)
blockShape - The shape of the quantization block.
Set the shape of the quantization block.
Allowed values are positive values and -1 which denotes a fully blocked dimension.
Returns true if the block shape was set successfully, false if the block shape is invalid.
The default value is empty Dims.getBlockShape()@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims64 getBlockShape()
setBlockShape()@NoException(value=true) public void setToType(nvinfer.DataType toType)
toType - The DataType of the output tensor.
Set the output type of the dequantize layer. Valid values are DataType::kFLOAT, DataType::kHALF and
DataType::kBF16. If the network is strongly typed, setToType must be used to set the output type, and use of
setOutputType is an error. Otherwise, types passed to setOutputType and setToType must be the same.NetworkDefinitionCreationFlag::kSTRONGLY_TYPED@NoException(value=true) public void setToType(@Cast(value="nvinfer1::DataType") int toType)
@NoException(value=true) public nvinfer.DataType getToType()
Copyright © 2026. All rights reserved.