Package | Description |
---|---|
org.nd4j.linalg.api.buffer | |
org.nd4j.linalg.api.buffer.factory | |
org.nd4j.linalg.api.buffer.util | |
org.nd4j.linalg.compression | |
org.nd4j.linalg.factory |
Modifier and Type | Field and Description |
---|---|
protected DataBuffer.AllocationMode |
BaseDataBuffer.allocationMode |
Modifier and Type | Method and Description |
---|---|
DataBuffer.AllocationMode |
BaseDataBuffer.allocationMode() |
DataBuffer.AllocationMode |
DataBuffer.allocationMode()
Allocation mode for buffers
|
static DataBuffer.AllocationMode |
DataBuffer.AllocationMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataBuffer.AllocationMode[] |
DataBuffer.AllocationMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Triple<DataBuffer.AllocationMode,Long,DataType> |
BaseDataBuffer.readHeader(@NonNull InputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
BaseDataBuffer.read(DataInputStream s,
@NonNull DataBuffer.AllocationMode allocMode,
long len,
@NonNull DataType dtype) |
void |
DataBuffer.read(DataInputStream s,
DataBuffer.AllocationMode allocationMode,
long length,
DataType dataType) |
void |
BaseDataBuffer.read(InputStream is,
DataBuffer.AllocationMode allocationMode,
long length,
DataType dataType) |
void |
DataBuffer.read(InputStream is,
DataBuffer.AllocationMode allocationMode,
long length,
DataType dataType)
Write this buffer to the input stream.
|
Modifier and Type | Method and Description |
---|---|
DataBuffer.AllocationMode |
DataBufferFactory.allocationMode()
Allocation mode for the data buffer
|
Modifier and Type | Method and Description |
---|---|
void |
DataBufferFactory.setAllocationMode(DataBuffer.AllocationMode allocationMode)
Setter for the allocation mode
|
Modifier and Type | Method and Description |
---|---|
static DataBuffer.AllocationMode |
AllocUtil.getAllocationModeFromContext()
get the allocation mode from the context
|
static DataBuffer.AllocationMode |
AllocUtil.getAllocationModeFromContext(String allocMode)
Get the allocation mode from the context
|
Modifier and Type | Method and Description |
---|---|
static String |
AllocUtil.getAllocModeName(DataBuffer.AllocationMode allocationMode)
Gets the name of the alocation mode
|
static void |
AllocUtil.setAllocationModeForContext(DataBuffer.AllocationMode allocationModeForContext)
Set the allocation mode for the nd4j context
The value must be one of: heap, java cpp, or direct
or an @link{IllegalArgumentException} is thrown
|
Modifier and Type | Method and Description |
---|---|
static DataBuffer |
CompressedDataBuffer.readUnknown(DataInputStream s,
DataBuffer.AllocationMode allocMode,
long length,
DataType type)
Drop-in replacement wrapper for BaseDataBuffer.read() method, aware of CompressedDataBuffer
|
Modifier and Type | Field and Description |
---|---|
static DataBuffer.AllocationMode |
Nd4j.alloc |
Copyright © 2020. All rights reserved.