@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class Half extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
Half.from_bits_t |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Half() |
Half(float value) |
Half(Pointer p)
Pointer cast constructor.
|
Half(short bits,
Half.from_bits_t arg1) |
Modifier and Type | Method and Description |
---|---|
float |
asFloat() |
static Half.from_bits_t |
from_bits() |
short |
x() |
Half |
x(short setter) |
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 Half(Pointer p)
Pointer(Pointer)
.public Half()
public Half(@Cast(value="unsigned short") short bits, @ByVal Half.from_bits_t arg1)
public Half(float value)
Copyright © 2024. All rights reserved.