@Namespace(value="Ort") @Properties(inherit=onnxruntime.class) public class Float16_t extends Pointer
 {.unparsed}
 // This example demonstrates converion from float to float16
 constexpr float values[] = {1.f, 2.f, 3.f, 4.f, 5.f};
 std::vector<Ort::Float16_t> fp16_values;
 fp16_values.reserve(std::size(values));
 std::transform(std::begin(values), std::end(values), std::back_inserter(fp16_values),
     [](float value) { return Ort::Float16_t(value); });
 Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description | 
|---|
Float16_t()
 | 
Float16_t(float v)
 | 
Float16_t(Pointer p)
Pointer cast constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
float | 
asFloat()
 | 
static Float16_t | 
FromBits(short v)
 | 
float | 
ToFloat()
 | 
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 Float16_t(Pointer p)
Pointer(Pointer).public Float16_t()
public Float16_t(float v)
@Const @ByVal @NoException(value=true) public static Float16_t FromBits(@Cast(value="uint16_t") short v)
@NoException(value=true) public float ToFloat()
@Name(value="operator float") @NoException(value=true) public float asFloat()
Copyright © 2025. All rights reserved.