@Namespace(value="nvinfer1") @NoOffset @Properties(inherit=nvinfer.class) public class IShuffleLayer extends ILayer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IShuffleLayer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Permutation |
getFirstTranspose()
\brief Get the permutation applied by the first transpose operation.
|
Dims64 |
getReshapeDimensions()
\brief Get the reshaped dimensions.
|
Permutation |
getSecondTranspose()
\brief Get the permutation applied by the second transpose operation.
|
boolean |
getZeroIsPlaceholder()
\brief Get meaning of 0 in reshape dimensions.
|
void |
setFirstTranspose(Permutation permutation)
\brief Set the permutation applied by the first transpose operation.
|
void |
setReshapeDimensions(Dims64 dimensions)
\brief Set the reshaped dimensions.
|
void |
setSecondTranspose(Permutation permutation)
\brief Set the permutation applied by the second transpose operation.
|
void |
setZeroIsPlaceholder(boolean zeroIsPlaceholder)
\brief Set meaning of 0 in reshape dimensions.
|
getInput, getMetadata, getName, getNbInputs, getNbOutputs, getOutput, getOutputType, getPrecision, getType, outputTypeIsSet, precisionIsSet, resetOutputType, resetPrecision, setInput, setMetadata, setMetadata, setName, setName, setOutputType, setOutputType, setPrecision, setPrecision
address, 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, withDeallocator, zero
public IShuffleLayer(Pointer p)
Pointer(Pointer)
.@NoException(value=true) public void setFirstTranspose(@ByVal Permutation permutation)
permutation
- The dimension permutation applied before the reshape.
The default is the identity permutation.getFirstTranspose
@ByVal @NoException(value=true) public Permutation getFirstTranspose()
setFirstTranspose
@NoException(value=true) public void setReshapeDimensions(@Cast(value="const nvinfer1::Dims*") @ByRef Dims64 dimensions)
dimensions
- The reshaped dimensions.
Two special values can be used as dimensions.
Value 0 copies the corresponding dimension from input. This special value
can be used more than once in the dimensions. If number of reshape
dimensions is less than input, 0s are resolved by aligning the most
significant dimensions of input.
Value -1 infers that particular dimension by looking at input and rest
of the reshape dimensions. Note that only a maximum of one dimension is
permitted to be specified as -1.
Avoid using -1 if the input can have zero volume and any of the other
reshape dimensions can be zero (after resolving special treatment of 0),
because the solution for the -1 becomes indeterminate and TensorRT will report an error.
The product of the new dimensions must be equal to the product of the old.
If a second input had been used to create this layer, that input is reset to null by this method.@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims64 getReshapeDimensions()
@NoException(value=true) public void setSecondTranspose(@ByVal Permutation permutation)
permutation
- The dimension permutation applied after the reshape.
The default is the identity permutation.
The permutation is applied as outputDimensionIndex = permutation.order[inputDimensionIndex], so to
permute from CHW order to HWC order, the required permutation is [1, 2, 0].getSecondTranspose
@ByVal @NoException(value=true) public Permutation getSecondTranspose()
setSecondTranspose
@NoException(value=true) public void setZeroIsPlaceholder(@Cast(value="bool") boolean zeroIsPlaceholder)
getZeroIsPlaceholder();
@Cast(value="bool") @NoException(value=true) public boolean getZeroIsPlaceholder()
setZeroIsPlaceholder
Copyright © 2024. All rights reserved.