@Namespace(value="nvinfer1") @Properties(inherit=nvinfer.class) public class IInt8LegacyCalibrator extends IInt8Calibrator
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IInt8LegacyCalibrator()
Default native constructor.
|
IInt8LegacyCalibrator(long size)
Native array allocator.
|
IInt8LegacyCalibrator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
nvinfer.CalibrationAlgoType |
getAlgorithm()
Signal that this is the legacy calibrator.
|
IInt8LegacyCalibrator |
getPointer(long i) |
double |
getQuantile()
\brief The quantile (between 0 and 1) that will be used to select the region maximum when the quantile method
is in use.
|
double |
getRegressionCutoff()
\brief The fraction (between 0 and 1) of the maximum used to define the regression cutoff when using regression
to determine the region maximum.
|
IInt8LegacyCalibrator |
position(long position) |
Pointer |
readHistogramCache(LongPointer length)
\brief Load a histogram.
|
void |
writeHistogramCache(Pointer ptr,
long length)
\brief Save a histogram cache.
|
getBatch, getBatchSize, readCalibrationCache, writeCalibrationCache
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 IInt8LegacyCalibrator()
public IInt8LegacyCalibrator(long size)
Pointer.position(long)
.public IInt8LegacyCalibrator(Pointer p)
Pointer(Pointer)
.public IInt8LegacyCalibrator position(long position)
position
in class IInt8Calibrator
public IInt8LegacyCalibrator getPointer(long i)
getPointer
in class IInt8Calibrator
@Virtual @NoException(value=true) public nvinfer.CalibrationAlgoType getAlgorithm()
getAlgorithm
in class IInt8Calibrator
@Virtual(value=true) @NoException(value=true) @Const(value={false,false,true}) public double getQuantile()
@Virtual(value=true) @NoException(value=true) @Const(value={false,false,true}) public double getRegressionCutoff()
@Virtual(value=true) @Const @NoException(value=true) public Pointer readHistogramCache(@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 writeHistogramCache(@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.readHistogramCache()
Copyright © 2024. All rights reserved.