@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class Quantizer extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Quantizer(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Tensor |
dequantize_out(Tensor out,
Tensor t)
dequantize a quantized Tensor into a float Tensor, out= variant
|
Tensor |
dequantize(Tensor t)
dequantize a quantized Tensor into a float Tensor.
|
boolean |
equalTo(QuantizerPtr other)
Compare against
other for equality. |
QuantizerPtr |
intrusive_from_this() |
torch.QScheme |
qscheme()
Each concrete Quantizer type should have a unique QScheme type.
|
Tensor |
quantize(Tensor t)
quantize a float Tensor into a quantized Tensor.
|
torch.ScalarType |
scalar_type_() |
torch.ScalarType |
scalar_type() |
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, zeropublic Quantizer(Pointer p)
Pointer(Pointer).@MemberGetter public torch.ScalarType scalar_type_()
@ByVal public QuantizerPtr intrusive_from_this()
public torch.QScheme qscheme()
public torch.ScalarType scalar_type()
@ByVal public Tensor quantize(@Const @ByRef Tensor t)
@ByVal public Tensor dequantize(@Const @ByRef Tensor t)
@ByRef public Tensor dequantize_out(@ByRef Tensor out, @Const @ByRef Tensor t)
@Cast(value="bool") public boolean equalTo(@ByVal QuantizerPtr other)
other for equality.Copyright © 2024. All rights reserved.