public class DeviceLocalNDArray extends DeviceLocal<INDArray>
backingMap, delayedArray, delayedMode, lastSettledDevice, locksMap, updatesMap
Constructor and Description |
---|
DeviceLocalNDArray() |
DeviceLocalNDArray(boolean delayedMode) |
DeviceLocalNDArray(INDArray array) |
DeviceLocalNDArray(INDArray array,
boolean delayedMode) |
Modifier and Type | Method and Description |
---|---|
void |
broadcast(INDArray array)
This method duplicates array, and stores it to all devices
PLEASE NOTE: this method is NOT atomic, so you must be sure no other threads are using this instance during the update
|
INDArray |
get()
This method returns object local to current deviceId
|
void |
update(@NonNull INDArray array)
This method updates
PLEASE NOTE: this method is NOT atomic, so you must be sure no other threads are using this instance during the update
|
clear, get, set, set
public DeviceLocalNDArray()
public DeviceLocalNDArray(boolean delayedMode)
public DeviceLocalNDArray(INDArray array)
public DeviceLocalNDArray(INDArray array, boolean delayedMode)
@Nullable public INDArray get()
get
in class DeviceLocal<INDArray>
public void broadcast(INDArray array)
array
- public void update(@NonNull @NonNull INDArray array)
array
- Copyright © 2020. All rights reserved.