pytorch/docs/source/notes
Jane Xu 988827cdfb Use schema as source of truth + support ones_like/empty_like (#149052)
This change does 2 important things:
(a) Instead of relying on IValue type as source of truth, we use the schema as the source of truth, which is important as IValue types are overloaded and can ambiguously convert incorrectly. For example, a MemoryFormat will look like an int + get converted to an int64_t vs a MemoryFormat!

(b) This PR expands support for many more types to encompass way more schemas, e.g., Optional, Device, dtype, etc. The main win from this PR is the ability for aoti_torch_call_dispatcher to call TensorFactory ops like ones_like/empty_like!

Pull Request resolved: https://github.com/pytorch/pytorch/pull/149052
Approved by: https://github.com/albanD
2025-03-18 02:40:54 +00:00
..
amp_examples.rst
autograd.rst [docs] fix autograd description on convex function case (#148658) 2025-03-13 09:06:15 +00:00
broadcasting.rst
cpu_threading_runtimes.svg
cpu_threading_torchscript_inference.rst
cpu_threading_torchscript_inference.svg
cuda.rst Documents torch.cuda.MemPool API (#148374) 2025-03-06 23:18:43 +00:00
custom_operators.rst
ddp.rst
extending.func.rst
extending.rst
faq.rst
fsdp.rst
get_start_xpu.rst Add note to get start xpu (#148168) 2025-03-05 18:11:14 +00:00
gradcheck.rst
hip.rst
large_scale_deployments.rst
libtorch_stable_abi.md Use schema as source of truth + support ones_like/empty_like (#149052) 2025-03-18 02:40:54 +00:00
modules.rst
mps.rst
multiprocessing.rst
numerical_accuracy.rst
randomness.rst Fix typo in Reproducibility docs (#141341) 2024-11-26 16:53:26 +00:00
serialization.rst Make record/storage alignment in torch.save configurable (#147788) 2025-03-06 12:04:46 +00:00
windows.rst