pytorch/torch/csrc/jit/frontend
rzou 856541c701 [custom_op] support default dtype values (#129189)
This PR:
- moves some of the dtype-string utilities into ScalarType.{h, cpp}
- adds a new utility to get a mapping from dtype name to the C++ dtype
- the perser now checks if the string is a dtype name; if it is then it
  pulls the c++ dtype from the mapping.

Test Plan:
- new tests
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129189
Approved by: https://github.com/albanD
ghstack dependencies: #129177, #129178, #129179
2024-06-23 00:13:23 +00:00
..
builtin_functions.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
builtin_functions.h
canonicalize_modified_loop.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
canonicalize_modified_loop.h
concrete_module_type.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
concrete_module_type.h [codemod] c10:optional -> std::optional (#126135) 2024-05-14 19:35:51 +00:00
convert_to_ssa.cpp
convert_to_ssa.h
edit_distance.cpp
edit_distance.h
error_report.cpp
error_report.h
exit_transforms.cpp
exit_transforms.h
function_schema_parser.cpp [custom_op] support default dtype values (#129189) 2024-06-23 00:13:23 +00:00
function_schema_parser.h [Reland] Verify types in custom op schemas (#126861) 2024-05-23 19:53:52 +00:00
inline_loop_condition.cpp
inline_loop_condition.h
ir_emitter.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
ir_emitter.h
lexer.cpp
lexer.h
mini_environment.h
name_mangler.cpp [1/N] Remove inclusion of c10/util/string_utils.h (#128300) 2024-06-10 23:40:47 +00:00
name_mangler.h
parse_string_literal.h Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
parser_constants.h
parser.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
parser.h
resolver.h
schema_matching.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
schema_matching.h Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
schema_type_parser.cpp [custom_op] support default dtype values (#129189) 2024-06-23 00:13:23 +00:00
schema_type_parser.h [Reland] Verify types in custom op schemas (#126861) 2024-05-23 19:53:52 +00:00
script_type_parser.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
script_type_parser.h [codemod] c10:optional -> std::optional (#126135) 2024-05-14 19:35:51 +00:00
source_range.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
source_range.h Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
source_ref.h
strtod.cpp
strtod.h
sugared_value.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
sugared_value.h Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
tracer.cpp Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)" 2024-06-15 01:58:20 +00:00
tracer.h Replace with standard type traits in torch/csrc (#127852) 2024-06-05 15:22:48 +00:00
tree_views.cpp
tree_views.h [1/N] Remove inclusion of c10/util/string_utils.h (#128300) 2024-06-10 23:40:47 +00:00
tree.h
versioned_symbols.cpp
versioned_symbols.h