Home
last modified time | relevance | path

Searched defs:current_device (Results 1 – 25 of 39) sorted by relevance

12

/aosp_15_r20/external/pytorch/torch/_dynamo/
H A Ddevice_interface.py59 def current_device() -> int: member in DeviceInterface.Worker
67 def current_device(): member in DeviceInterface
168 def current_device() -> int: member in CudaInterface.Worker
193 current_device = staticmethod(torch.cuda.current_device) variable in CudaInterface
239 def current_device() -> int: member in XpuInterface.Worker
264 current_device = staticmethod(torch.xpu.current_device) variable in XpuInterface
/aosp_15_r20/external/pytorch/c10/cuda/
H A DCUDAGuard.h63 Device current_device() const { in current_device() function
126 std::optional<Device> current_device() const { in current_device() function
190 Device current_device() const { in current_device() function
H A DCUDAFunctions.cpp126 DeviceIndex current_device() { in current_device() function
/aosp_15_r20/external/pytorch/c10/core/
H A DDeviceGuard.h77 Device current_device() const { in current_device() function
177 std::optional<Device> current_device() const { in current_device() function
H A DStreamGuard.h72 Device current_device() const { in current_device() function
/aosp_15_r20/external/pytorch/c10/core/impl/
H A DInlineDeviceGuard.h191 Device current_device() const { in current_device() function
415 std::optional<Device> current_device() const { in current_device() function
H A DInlineStreamGuard.h109 Device current_device() const { in current_device() function
/aosp_15_r20/external/pytorch/aten/src/ATen/hip/impl/
H A DHIPGuardImplMasqueradingAsCUDA.h265 Device current_device() const { return guard_.current_device(); } in current_device() function
285 std::optional<Device> current_device() const { return guard_.current_device(); } in current_device() function
309 Device current_device() const { return guard_.current_device(); } in current_device() function
/aosp_15_r20/external/pytorch/test/inductor/extension_backends/triton/
H A Ddevice_interface.py60 def current_device() -> int: member in DeviceInterface.Worker
71 def current_device() -> int: member in DeviceInterface
/aosp_15_r20/external/pytorch/test/cpp_extensions/
H A Dmtia_extension.cpp12 static thread_local c10::DeviceIndex current_device = 0; variable
41 c10::Device current_device = getDevice(); in setDevice() local
/aosp_15_r20/external/pytorch/aten/src/ATen/cuda/detail/
H A DCUDAHooks.cpp235 DeviceIndex current_device() { in current_device() function
244 DeviceIndex CUDAHooks::current_device() const { in current_device() function in at::cuda::detail::CUDAHooks
/aosp_15_r20/external/pytorch/torch/csrc/xpu/
H A DModule.cpp69 auto current_device = c10::xpu::exchange_device(device_index); in THXPModule_exchangeDevice_wrap() local
86 auto current_device = c10::xpu::maybe_exchange_device(device_index); in THXPModule_maybeExchangeDevice_wrap() local
H A DStream.cpp19 const auto current_device = c10::xpu::current_device(); in THXPStream_pynew() local
/aosp_15_r20/external/pytorch/aten/src/ATen/detail/
H A DHIPHooksInterface.h42 virtual c10::DeviceIndex current_device() const { in current_device() function
H A DXPUHooksInterface.h49 virtual DeviceIndex current_device() const { in current_device() function
H A DCUDAHooksInterface.h120 virtual DeviceIndex current_device() const { in current_device() function
/aosp_15_r20/external/pytorch/aten/src/ATen/xpu/detail/
H A DXPUHooks.cpp60 DeviceIndex XPUHooks::current_device() const { in current_device() function in at::xpu::detail::XPUHooks
/aosp_15_r20/external/pytorch/torch/csrc/cuda/
H A DStream.cpp22 const auto current_device = c10::cuda::current_device(); in THCPStream_pynew() local
/aosp_15_r20/frameworks/base/libs/usb/tests/accessorytest/
H A Dusb.c30 static struct usb_device *current_device = NULL; variable
/aosp_15_r20/external/pytorch/torch/cpu/
H A D__init__.py179 def current_device() -> str: function
/aosp_15_r20/external/pytorch/aten/src/ATen/mps/
H A DMPSGuardImpl.h162 std::optional<Device> current_device() const { in current_device() function
/aosp_15_r20/external/pytorch/c10/xpu/
H A DXPUFunctions.cpp185 DeviceIndex current_device() { in current_device() function
/aosp_15_r20/external/pytorch/torch/mtia/
H A D__init__.py127 def current_device() -> int: function
/aosp_15_r20/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/transforms/
H A Dget_alternative_subgraph.cc151 auto current_device = GetTargetAnnotation(func); in GetAlternativeGraphForFunc() local
/aosp_15_r20/external/pytorch/test/
H A Dtest_cpp_extensions_open_device_registration.py58 def current_device(): function

12