示例#1
0
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return True
示例#2
0
文件: dispatch.py 项目: cpcloud/numba
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return True
示例#3
0
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return isinstance(obj, np.ndarray)
示例#4
0
文件: dispatch.py 项目: cpcloud/numba
 def is_device_array(self, obj):
     if dgpu_present:
         return devicearray.is_hsa_ndarray(obj)
     else:
         return isinstance(obj, np.ndarray)