| Package | Description |
|---|---|
| org.tensorflow.ndarray.buffer.layout | |
| org.tensorflow.ndarray.impl.buffer.adapter | |
| org.tensorflow.ndarray.impl.buffer.layout |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BooleanDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to booleans. |
interface |
ByteDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to bytes. |
interface |
DoubleDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to doubles. |
interface |
FloatDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to floats. |
interface |
IntDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to ints. |
interface |
LongDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to longs. |
interface |
ShortDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to shorts. |
| Modifier and Type | Method and Description |
|---|---|
static DataLayout<DataBuffer<byte[]>,String> |
DataLayouts.ofStrings(Charset charset)
Creates a data layout for converting strings to/from byte sequences.
|
| Modifier and Type | Method and Description |
|---|---|
static <S extends DataBuffer<?>,T> |
DataBufferAdapterFactory.create(S buffer,
DataLayout<S,T> layout)
Creates an adapter that applies a 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 |
BoolLayout
Data layout that converts booleans from/to bytes.
|
class |
Float16Layout
Data layout that converts 32-bit floats from/to 16-bit, accordingly to the IEEE-754 half-precision
floating point specification.
|
class |
StringLayout
Data layout that converts a String to/from a sequence of bytes applying a given charset.
|
Copyright © 2015–2020. All rights reserved.