mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/59287 D27211605 added a warning in `toIValue` that warns users to script their dictionaries before passing them to TorchScript functions in order to get some performance benefits and reference semantics. However, this warning is emitted every time `toIValue` is called (e.g. when a dictionary is passed to TorchScript function), which can lead to noisy log output. This diff changes this changes to use `TORCH_WARN_ONCE` instead. Test Plan: Sandcastle, OSS CI. Reviewed By: hyuen Differential Revision: D28824468 fbshipit-source-id: e651eade4380abaf77c6c8a81ec4e565b0c2c714 |
||
|---|---|---|
| .. | ||
| init.cpp | ||
| init.h | ||
| module_python.h | ||
| pybind_utils.cpp | ||
| pybind_utils.h | ||
| pybind.h | ||
| python_arg_flatten.cpp | ||
| python_arg_flatten.h | ||
| python_custom_class.cpp | ||
| python_custom_class.h | ||
| python_dict.cpp | ||
| python_dict.h | ||
| python_interpreter.cpp | ||
| python_ir.cpp | ||
| python_ir.h | ||
| python_ivalue.h | ||
| python_sugared_value.cpp | ||
| python_sugared_value.h | ||
| python_tracer.cpp | ||
| python_tracer.h | ||
| python_tree_views.cpp | ||
| python_tree_views.h | ||
| script_init.cpp | ||
| script_init.h | ||
| update_graph_executor_opt.cpp | ||
| update_graph_executor_opt.h | ||