affinity fix for tensorflow conversion
Signed-off-by: raver119 <raver119@gmail.com>
This commit is contained in:
parent
56910ddee7
commit
000334ea2a
@ -296,7 +296,7 @@ public class TensorflowConversion {
|
||||
* @return
|
||||
*/
|
||||
public static String defaultDeviceForThread() {
|
||||
Integer deviceForThread = Nd4j.getAffinityManager().getDeviceForThread(Thread.currentThread());
|
||||
Integer deviceForThread = Nd4j.getAffinityManager().getDeviceForCurrentThread();
|
||||
String deviceName = null;
|
||||
//gpu
|
||||
if(Nd4j.getBackend().getClass().getName().contains("JCublasBackend")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user