pytorch/torch/_C
Yu, Guangye 0ec0549823 Introduce a new API torch.xpu.get_per_process_memory_fraction (#165511)
# Motivation
Aligned with other backends, this PR introduces a new API torch.xpu.get_per_process_memory_fraction to allow user to retrieve the allowed memory fraction per a single process.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165511
Approved by: https://github.com/EikanWang, https://github.com/ezyang
ghstack dependencies: #165508, #165509, #165510
2025-10-30 19:30:09 +00:00
..
_acc Add functions to setup PrivateUse1 as a python backend device. (#157859) 2025-10-01 21:32:59 +00:00
_dynamo [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
_export [serialization] Add pte file to archive (#162520) 2025-09-11 07:59:11 +00:00
__init__.pyi.in Introduce a new API torch.xpu.get_per_process_memory_fraction (#165511) 2025-10-30 19:30:09 +00:00
_aoti.pyi [AOTInductor] Add class declarations to torch._C._aoti interface file (#155128) 2025-06-17 00:10:57 +00:00
_autograd.pyi [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
_cpu.pyi [CPUInductor] Fix SVE256 detection (#146207) 2025-02-01 18:51:34 +00:00
_cudnn.pyi Improve typing in torch/types.py (#145237) 2025-01-28 05:29:12 +00:00
_cusparselt.pyi
_distributed_autograd.pyi remove allow-untyped-defs for torch/_C/_distributed_autograd.pyi (#143369) 2024-12-17 18:09:28 +00:00
_distributed_c10d.pyi [xpu] Fix type annotation for ProcessGroupXCCL (#166418) 2025-10-30 19:29:06 +00:00
_distributed_rpc_testing.pyi
_distributed_rpc.pyi
_distributed.pyi Re-re-re-re-apply "C++-accessible Placements via pybind11 (#163030)" (#166132) 2025-10-27 21:19:32 +00:00
_functionalization.pyi Reapply "Make functionalization ViewMeta serializable with pickle. (#143712)" (#163769) 2025-09-25 10:27:37 +00:00
_functions.pyi PEP585 update - torch/_C torch/_decomp torch/_lazy torch/_library torch/_numpy torch/_prims torch/_refs torch/_strobelight (#145102) 2025-01-18 20:47:12 +00:00
_functorch.pyi torchdim Python port (#160236) 2025-09-21 03:01:04 +00:00
_instruction_counter.pyi
_itt.pyi
_jit_tree_views.pyi added stubs for jit tree views (#156504) 2025-06-25 06:15:17 +00:00
_lazy_ts_backend.pyi
_lazy.pyi remove allow-untyped-defs for torch/_C/_lazy.pyi (#143370) 2024-12-17 17:18:10 +00:00
_monitor.pyi [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
_nn.pyi.in fix type hints for interpolation functions (#157202) 2025-07-09 03:11:37 +00:00
_nvtx.pyi Inductor annotations (#130429) 2024-12-10 08:53:39 +00:00
_onnx.pyi
_profiler.pyi [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
_VariableFunctions.pyi.in [BE][CI][Easy] Run lintrunner on generated .pyi stub files (#150732) 2025-05-27 14:58:02 +00:00
_verbose.pyi
build.bzl
return_types.pyi.in [BE][CI][Easy] Run lintrunner on generated .pyi stub files (#150732) 2025-05-27 14:58:02 +00:00