| Package | Description |
|---|---|
| org.tensorflow.ndarray.buffer.layout | |
| org.tensorflow.ndarray.impl.buffer.adapter | |
| org.tensorflow.ndarray.impl.buffer.layout |
| Modifier and Type | Field and Description |
|---|---|
static FloatDataLayout<ShortDataBuffer> |
DataLayouts.BFLOAT16
Data layout for converting 16-bit bfloats to/from short values.
|
static FloatDataLayout<ShortDataBuffer> |
DataLayouts.FLOAT16
Data layout for converting 16-bit half floats to/from short values.
|
| Modifier and Type | Method and Description |
|---|---|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
FloatDataLayout<S> layout)
Creates an adapter that applies a float data layout to the given buffer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Bfloat16Layout
Data layout that converts 32-bit floats from/to 16-bit, truncating their mantissa to 7 bits but
preserving the 8-bit exponent with the same bias.
|
class |
Float16Layout
Data layout that converts 32-bit floats from/to 16-bit, accordingly to the IEEE-754 half-precision
floating point specification.
|
Copyright © 2015–2020. All rights reserved.