| {".class": "MypyFile", "_fullname": "torch.nn._reduction", "future_import_flags": [], "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "Optional": {".class": "SymbolTableNode", "cross_ref": "typing.Optional", "kind": "Gdef"}, "__annotations__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.nn._reduction.__annotations__", "name": "__annotations__", "type": {".class": "Instance", "args": ["builtins.str", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.dict"}}}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.nn._reduction.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.nn._reduction.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.nn._reduction.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.nn._reduction.__package__", "name": "__package__", "type": "builtins.str"}}, "get_enum": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["reduction"], "flags": [], "fullname": "torch.nn._reduction.get_enum", "name": "get_enum", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["reduction"], "arg_types": ["builtins.str"], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "get_enum", "ret_type": "builtins.int", "type_guard": null, "variables": []}}}, "legacy_get_enum": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 1], "arg_names": ["size_average", "reduce", "emit_warning"], "flags": [], "fullname": "torch.nn._reduction.legacy_get_enum", "name": "legacy_get_enum", "type": {".class": "CallableType", "arg_kinds": [0, 0, 1], "arg_names": ["size_average", "reduce", "emit_warning"], "arg_types": [{".class": "UnionType", "items": ["builtins.bool", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.bool", {".class": "NoneType"}]}, "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "legacy_get_enum", "ret_type": "builtins.int", "type_guard": null, "variables": []}}}, "legacy_get_string": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 1], "arg_names": ["size_average", "reduce", "emit_warning"], "flags": [], "fullname": "torch.nn._reduction.legacy_get_string", "name": "legacy_get_string", "type": {".class": "CallableType", "arg_kinds": [0, 0, 1], "arg_names": ["size_average", "reduce", "emit_warning"], "arg_types": [{".class": "UnionType", "items": ["builtins.bool", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.bool", {".class": "NoneType"}]}, "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "legacy_get_string", "ret_type": "builtins.str", "type_guard": null, "variables": []}}}, "warnings": {".class": "SymbolTableNode", "cross_ref": "warnings", "kind": "Gdef"}}, "path": "/home/patrick/hf/lib/python3.7/site-packages/torch/nn/_reduction.py"} |