RuntimeError() — pytorch Function Reference
Architecture documentation for the RuntimeError() function in common.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD ce8fd365_4112_b289_9c73_7345d5e35203["RuntimeError()"] 6233fde7_853e_8fb3_0ae6_703b798d8c5d["load_model_from_path()"] 6233fde7_853e_8fb3_0ae6_703b798d8c5d -->|calls| ce8fd365_4112_b289_9c73_7345d5e35203 d0c96460_b5ec_95d1_765a_084b5860c03d["randomize_input()"] d0c96460_b5ec_95d1_765a_084b5860c03d -->|calls| ce8fd365_4112_b289_9c73_7345d5e35203 008d9589_ae5b_adb6_6987_3e212c1e7325["download_retry_decorator()"] 008d9589_ae5b_adb6_6987_3e212c1e7325 -->|calls| ce8fd365_4112_b289_9c73_7345d5e35203 e06b2878_0675_86a2_5846_47fa93c9dd10["read_batch_size_from_file()"] e06b2878_0675_86a2_5846_47fa93c9dd10 -->|calls| ce8fd365_4112_b289_9c73_7345d5e35203 684ace56_6d9f_5ea1_f47a_cb8aa5834a49["validate_model()"] 684ace56_6d9f_5ea1_f47a_cb8aa5834a49 -->|calls| ce8fd365_4112_b289_9c73_7345d5e35203 60550900_f047_a85b_c5ab_ff80b30486b4["main()"] 60550900_f047_a85b_c5ab_ff80b30486b4 -->|calls| ce8fd365_4112_b289_9c73_7345d5e35203 style ce8fd365_4112_b289_9c73_7345d5e35203 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/common.py lines 4611–4613
raise RuntimeError(
f"You shouldn't run {sys.argv[0]} directly, instead try timm_model.py, torchbench.py or huggingface.py"
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does RuntimeError() do?
RuntimeError() is a function in the pytorch codebase.
What calls RuntimeError()?
RuntimeError() is called by 6 function(s): download_retry_decorator, load_model_from_path, main, randomize_input, read_batch_size_from_file, validate_model.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free