@Namespace(value="nvinfer1::v_1_0") @Properties(inherit=nvinfer.class) public class IOutputAllocator extends IVersionedInterface
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
IOutputAllocator(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InterfaceInfo |
getInterfaceInfo()
\brief Return version information associated with this interface.
|
void |
notifyShape(BytePointer tensorName,
Dims64 dims) |
void |
notifyShape(String tensorName,
Dims64 dims)
\brief Called by TensorRT when the shape of the output tensor is known.
|
Pointer |
reallocateOutput(BytePointer tensorName,
Pointer currentMemory,
long size,
long alignment)
Deprecated.
|
Pointer |
reallocateOutput(String tensorName,
Pointer currentMemory,
long size,
long alignment)
Deprecated.
Deprecated in TensorRT 10.0. Superseded by reallocateOutputAsync with cudaStream_t argument
|
Pointer |
reallocateOutputAsync(BytePointer tensorName,
Pointer currentMemory,
long size,
long alignment,
org.bytedeco.cuda.cudart.CUstream_st arg4) |
Pointer |
reallocateOutputAsync(String tensorName,
Pointer currentMemory,
long size,
long alignment,
org.bytedeco.cuda.cudart.CUstream_st arg4)
\brief Return a pointer to memory for an output tensor, or nullptr if memory cannot be allocated.
|
getAPILanguageaddress, 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, zeropublic IOutputAllocator(Pointer p)
Pointer(Pointer).@ByVal @NoException(value=true) public InterfaceInfo getInterfaceInfo()
getInterfaceInfo in class IVersionedInterface@Deprecated @NoException(value=true) public Pointer reallocateOutput(String tensorName, Pointer currentMemory, @Cast(value="uint64_t") long size, @Cast(value="uint64_t") long alignment)
tensorName - name of the output tensor.currentMemory - points to the address set by IExecutionContext::setTensorAddress.size - number of bytes required. Always positive, even for an empty tensor.alignment - required alignment of the allocation.@Deprecated @NoException(value=true) public Pointer reallocateOutput(@Cast(value="const char*") BytePointer tensorName, Pointer currentMemory, @Cast(value="uint64_t") long size, @Cast(value="uint64_t") long alignment)
public Pointer reallocateOutputAsync(String tensorName, Pointer currentMemory, @Cast(value="uint64_t") long size, @Cast(value="uint64_t") long alignment, org.bytedeco.cuda.cudart.CUstream_st arg4)
tensorName - name of the output tensor.currentMemory - points to the address set by IExecutionContext::setTensorAddress.size - number of bytes required. Always positive, even for an empty tensor.alignment - required alignment of the allocation.stream - The stream in which to execute the kernels.public Pointer reallocateOutputAsync(@Cast(value="const char*") BytePointer tensorName, Pointer currentMemory, @Cast(value="uint64_t") long size, @Cast(value="uint64_t") long alignment, org.bytedeco.cuda.cudart.CUstream_st arg4)
@NoException(value=true) public void notifyShape(String tensorName, @Cast(value="const nvinfer1::Dims*") @ByRef Dims64 dims)
dims - dimensions of the outputtensorName - name of the tensor@NoException(value=true) public void notifyShape(@Cast(value="const char*") BytePointer tensorName, @Cast(value="const nvinfer1::Dims*") @ByRef Dims64 dims)
Copyright © 2025. All rights reserved.