We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a280d2f commit 92f9857Copy full SHA for 92f9857
torch/testing/_internal/common_utils.py
@@ -871,11 +871,6 @@ def enable_profiling_mode_for_profiling_tests():
871
torch._C._jit_set_profiling_executor(old_prof_exec_state)
872
torch._C._get_graph_executor_optimize(old_prof_mode_state)
873
874
-def raise_on_run_directly(file_to_call):
875
- raise RuntimeError("This test file is not meant to be run directly, "
876
- f"use:\n\n\tpython {file_to_call} TESTNAME\n\n"
877
- "instead.")
878
-
879
@contextmanager
880
def enable_profiling_mode():
881
old_prof_exec_state = torch._C._jit_set_profiling_executor(True)
0 commit comments