@Namespace(value="nvinfer1") @NoOffset @Properties(inherit=nvinfer.class) public class ISliceLayer extends ILayer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ISliceLayer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Dims64 |
getAxes()
\brief Get the axes for this ISliceLayer.
|
nvinfer.SampleMode |
getMode()
\brief Get the slice mode.
|
Dims64 |
getSize()
\brief Get dimensions of the output slice.
|
Dims64 |
getStart()
\brief Get the start offset for the slice layer.
|
Dims64 |
getStride()
\brief Get the stride for the output slice.
|
void |
setAxes(Dims64 axes)
\brief Set the axes for this ISliceLayer.
|
void |
setMode(int mode) |
void |
setMode(nvinfer.SampleMode mode)
\brief Set the slice mode.
|
void |
setSize(Dims64 size)
\brief Set the dimensions of the output slice.
|
void |
setStart(Dims64 start)
\brief Set the start offset that the slice layer uses to create the output slice.
|
void |
setStride(Dims64 stride)
\brief Set the stride for computing the output slice data.
|
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 ISliceLayer(Pointer p)
Pointer(Pointer)
.@NoException(value=true) public void setStart(@Cast(value="const nvinfer1::Dims*") @ByRef Dims64 start)
start
- The start offset to read data from the input tensor.
If a second input had been used to create this layer, that input is reset to null by this method.getStart
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims64 getStart()
setStart
@NoException(value=true) public void setSize(@Cast(value="const nvinfer1::Dims*") @ByRef Dims64 size)
size
- The dimensions of the output slice.
If a third input had been used to create this layer, that input is reset to null by this method.getSize
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims64 getSize()
setSize
@NoException(value=true) public void setStride(@Cast(value="const nvinfer1::Dims*") @ByRef Dims64 stride)
stride
- The dimensions of the stride to compute the values to store in the output slice.
If a fourth input had been used to create this layer, that input is reset to null by this method.getStride
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims64 getStride()
setStride
@NoException(value=true) public void setMode(nvinfer.SampleMode mode)
getMode()
@NoException(value=true) public void setMode(@Cast(value="nvinfer1::SampleMode") int mode)
@NoException(value=true) public nvinfer.SampleMode getMode()
setMode()
@NoException(value=true) public void setAxes(@Cast(value="const nvinfer1::Dims*") @ByRef Dims64 axes)
axes
- The axes on which the starts, ends, and strides parameters of the slice apply to.
If a sixth input had been used to create this layer, that input is reset to null by this method.getAxes
@ByVal @Cast(value="nvinfer1::Dims*") @NoException(value=true) public Dims64 getAxes()
setAxes
Copyright © 2024. All rights reserved.