mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-04 22:54:18 +00:00
1 line
9.0 KiB
JSON
1 line
9.0 KiB
JSON
{".class": "MypyFile", "_fullname": "torch.utils.throughput_benchmark", "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "ExecutionStats": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.utils.throughput_benchmark.ExecutionStats", "name": "ExecutionStats", "type_vars": []}, "flags": [], "fullname": "torch.utils.throughput_benchmark.ExecutionStats", "metaclass_type": null, "metadata": {}, "module_name": "torch.utils.throughput_benchmark", "mro": ["torch.utils.throughput_benchmark.ExecutionStats", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "c_stats", "benchmark_config"], "flags": [], "fullname": "torch.utils.throughput_benchmark.ExecutionStats.__init__", "name": "__init__", "type": null}}, "__str__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.utils.throughput_benchmark.ExecutionStats.__str__", "name": "__str__", "type": null}}, "_c_stats": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.throughput_benchmark.ExecutionStats._c_stats", "name": "_c_stats", "type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}}}, "benchmark_config": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.throughput_benchmark.ExecutionStats.benchmark_config", "name": "benchmark_config", "type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}}}, "iters_per_second": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_property", "is_decorated"], "fullname": "torch.utils.throughput_benchmark.ExecutionStats.iters_per_second", "name": "iters_per_second", "type": null}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_property", "is_ready"], "fullname": null, "name": "iters_per_second", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.utils.throughput_benchmark.ExecutionStats"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "implicit": true, "is_ellipsis_args": false, "name": "iters_per_second of ExecutionStats", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}}, "latency_avg_ms": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_property", "is_decorated"], "fullname": "torch.utils.throughput_benchmark.ExecutionStats.latency_avg_ms", "name": "latency_avg_ms", "type": null}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_property", "is_ready"], "fullname": null, "name": "latency_avg_ms", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.utils.throughput_benchmark.ExecutionStats"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "implicit": true, "is_ellipsis_args": false, "name": "latency_avg_ms of ExecutionStats", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}}, "num_iters": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_property", "is_decorated"], "fullname": "torch.utils.throughput_benchmark.ExecutionStats.num_iters", "name": "num_iters", "type": null}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_property", "is_ready"], "fullname": null, "name": "num_iters", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.utils.throughput_benchmark.ExecutionStats"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "implicit": true, "is_ellipsis_args": false, "name": "num_iters of ExecutionStats", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}}, "total_time_seconds": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_property", "is_decorated"], "fullname": "torch.utils.throughput_benchmark.ExecutionStats.total_time_seconds", "name": "total_time_seconds", "type": null}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_property", "is_ready"], "fullname": null, "name": "total_time_seconds", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.utils.throughput_benchmark.ExecutionStats"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "implicit": true, "is_ellipsis_args": false, "name": "total_time_seconds of ExecutionStats", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}}}, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "ThroughputBenchmark": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.utils.throughput_benchmark.ThroughputBenchmark", "name": "ThroughputBenchmark", "type_vars": []}, "flags": [], "fullname": "torch.utils.throughput_benchmark.ThroughputBenchmark", "metaclass_type": null, "metadata": {}, "module_name": "torch.utils.throughput_benchmark", "mro": ["torch.utils.throughput_benchmark.ThroughputBenchmark", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "module"], "flags": [], "fullname": "torch.utils.throughput_benchmark.ThroughputBenchmark.__init__", "name": "__init__", "type": null}}, "_benchmark": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.throughput_benchmark.ThroughputBenchmark._benchmark", "name": "_benchmark", "type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}}}, "add_input": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 2, 4], "arg_names": ["self", "args", "kwargs"], "flags": [], "fullname": "torch.utils.throughput_benchmark.ThroughputBenchmark.add_input", "name": "add_input", "type": null}}, "benchmark": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 1, 1, 1, 1], "arg_names": ["self", "num_calling_threads", "num_warmup_iters", "num_iters", "profiler_output_path"], "flags": [], "fullname": "torch.utils.throughput_benchmark.ThroughputBenchmark.benchmark", "name": "benchmark", "type": null}}, "run_once": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 2, 4], "arg_names": ["self", "args", "kwargs"], "flags": [], "fullname": "torch.utils.throughput_benchmark.ThroughputBenchmark.run_once", "name": "run_once", "type": null}}}, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.throughput_benchmark.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.throughput_benchmark.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.throughput_benchmark.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.throughput_benchmark.__package__", "name": "__package__", "type": "builtins.str"}}, "format_time": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [1, 1, 1], "arg_names": ["time_us", "time_ms", "time_s"], "flags": [], "fullname": "torch.utils.throughput_benchmark.format_time", "name": "format_time", "type": null}}, "torch": {".class": "SymbolTableNode", "cross_ref": "torch", "kind": "Gdef"}}, "path": "/home/patrick/anaconda3/lib/python3.9/site-packages/torch/utils/throughput_benchmark.py"} |