@Namespace(value="nvinfer1") @Properties(inherit=nvinfer.class) public class IInt8Calibrator extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IInt8Calibrator()
Default native constructor.
|
IInt8Calibrator(long size)
Native array allocator.
|
IInt8Calibrator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
nvinfer.CalibrationAlgoType |
getAlgorithm()
\brief Get the algorithm used by this calibrator.
|
boolean |
getBatch(PointerPointer bindings,
PointerPointer names,
int nbBindings)
\brief Get a batch of input for calibration.
|
int |
getBatchSize()
\brief Get the batch size used for calibration batches.
|
IInt8Calibrator |
getPointer(long i) |
IInt8Calibrator |
position(long position) |
Pointer |
readCalibrationCache(LongPointer length)
\brief Load a calibration cache.
|
void |
writeCalibrationCache(Pointer ptr,
long length)
\brief Save a calibration cache.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public IInt8Calibrator()
public IInt8Calibrator(long size)
Pointer.position(long)
.public IInt8Calibrator(Pointer p)
Pointer(Pointer)
.public IInt8Calibrator position(long position)
public IInt8Calibrator getPointer(long i)
getPointer
in class Pointer
@Virtual(value=true) @NoException(value=true) @Const(value={false,false,true}) public int getBatchSize()
@Virtual(value=true) @Cast(value="bool") @NoException(value=true) public boolean getBatch(@Cast(value="void**") PointerPointer bindings, @Cast(value="const char**") PointerPointer names, int nbBindings)
bindings
- An array of pointers to device memory that must be updated to point to device memory
containing each network input data.names
- The names of the network input for each pointer in the binding array.nbBindings
- The number of pointers in the bindings array.getBatchSize()
@Virtual(value=true) @Const @NoException(value=true) public Pointer readCalibrationCache(@Cast(value="std::size_t*") @ByRef LongPointer length)
length
- The length of the cached data, that should be set by the called function. If there is no data,
this should be zero.@Virtual(value=true) @NoException(value=true) public void writeCalibrationCache(@Const Pointer ptr, @Cast(value="std::size_t") long length)
ptr
- A pointer to the data to cache.length
- The length in bytes of the data to cache.readCalibrationCache()
@Virtual(value=true) @NoException(value=true) public nvinfer.CalibrationAlgoType getAlgorithm()
Copyright © 2024. All rights reserved.