pytorch/torch/csrc/utils
Nikita Shulga 2bc6f329b2 Make PyTorch argparser understand complex (#129580)
It understands float and int, so why not `complex`.

Test plan: `python -c "import torch;print(torch.rand(3, dtype=complex))"`

Fixes https://github.com/pytorch/pytorch/issues/126837

Pull Request resolved: https://github.com/pytorch/pytorch/pull/129580
Approved by: https://github.com/albanD
2024-06-29 01:21:12 +00:00
..
byte_order.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
byte_order.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
cpp_stacktraces.cpp Fast standalone symbolize for unwinding (#123966) 2024-05-14 19:39:17 +00:00
cpp_stacktraces.h Fast standalone symbolize for unwinding (#123966) 2024-05-14 19:39:17 +00:00
cuda_enabled.h [2/N] Change static functions in headers to inline (#127764) 2024-06-04 00:49:04 +00:00
device_lazy_init.cpp Avoid cuda init to FakeTensorMode (#124413) 2024-04-19 02:39:35 +00:00
device_lazy_init.h [2/N] Change static functions in headers to inline (#127764) 2024-06-04 00:49:04 +00:00
disable_torch_function.cpp
disable_torch_function.h
init.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
init.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
invalid_arguments.cpp
invalid_arguments.h
nested.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
nested.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
numpy_stub.h
object_ptr.cpp
object_ptr.h
out_types.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
out_types.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
pybind.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
pybind.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
pycfunction_helpers.h
pyobject_preservation.cpp
pyobject_preservation.h
python_arg_parser.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
python_arg_parser.h Make PyTorch argparser understand complex (#129580) 2024-06-29 01:21:12 +00:00
python_compat.h [3.13] get C dynamo to compile with python callback and custom frame eval (#129171) 2024-06-21 15:58:02 +00:00
python_dispatch.cpp Revert "Modularize aten parameter parser and checker (#125308)" 2024-06-20 18:52:05 +00:00
python_dispatch.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
python_numbers.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
python_raii.h Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
python_scalars.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
python_strings.h [2/N] Change static functions in headers to inline (#127764) 2024-06-04 00:49:04 +00:00
python_stub.h
python_symnode.cpp
python_symnode.h Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
python_torch_function_mode.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
python_tuples.h
pythoncapi_compat.h
schema_info.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
schema_info.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
six.h
structseq.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
structseq.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_apply.cpp Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_apply.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_dtypes.cpp [custom_op] support default dtype values (#129189) 2024-06-23 00:13:23 +00:00
tensor_dtypes.h Support torch.dtype as parameter in pybind11 cpp extension. (#126865) 2024-05-29 23:19:32 +00:00
tensor_flatten.cpp Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_flatten.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_layouts.cpp Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_layouts.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_list.cpp Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_list.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_memoryformats.cpp Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_memoryformats.h Fix refcount handling for dtype, layout and memory format (#125271) 2024-05-02 02:34:34 +00:00
tensor_new.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
tensor_new.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_numpy.cpp Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_numpy.h
tensor_qschemes.cpp Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_qschemes.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
tensor_types.cpp
tensor_types.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
throughput_benchmark-inl.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
throughput_benchmark.cpp Concat namespaces in torch/csrc/utils/* (#128787) 2024-06-16 23:51:14 +00:00
throughput_benchmark.h Concat namespaces and other fixes in torch/csrc/utils (#127833) 2024-06-04 15:12:45 +00:00
torch_dispatch_mode.h Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
variadic.cpp
variadic.h Remove unused type traits in torch/csrc/utils (#128799) 2024-06-27 23:51:18 +00:00
verbose.cpp
verbose.h