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