Exemple #1
0
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return True
Exemple #2
0
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return True
Exemple #3
0
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return isinstance(obj, np.ndarray)
Exemple #4
0
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return isinstance(obj, np.ndarray)