{".class": "MypyFile", "_fullname": "torch.utils.data.distributed", "future_import_flags": [], "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "Dataset": {".class": "SymbolTableNode", "cross_ref": "torch.utils.data.dataset.Dataset", "kind": "Gdef"}, "DistributedSampler": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": [{".class": "Instance", "args": [{".class": "TypeVarType", "fullname": "torch.utils.data.distributed.T_co", "id": 1, "name": "T_co", "namespace": "torch.utils.data.distributed.DistributedSampler", "upper_bound": "builtins.object", "values": [], "variance": 1}], "type_ref": "torch.utils.data.sampler.Sampler"}], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.utils.data.distributed.DistributedSampler", "name": "DistributedSampler", "type_vars": [{".class": "TypeVarType", "fullname": "torch.utils.data.distributed.T_co", "id": 1, "name": "T_co", "namespace": "torch.utils.data.distributed.DistributedSampler", "upper_bound": "builtins.object", "values": [], "variance": 1}]}, "deletable_attributes": [], "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler", "has_param_spec_type": false, "metaclass_type": null, "metadata": {}, "module_name": "torch.utils.data.distributed", "mro": ["torch.utils.data.distributed.DistributedSampler", "torch.utils.data.sampler.Sampler", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 1, 1, 1, 1, 1], "arg_names": ["self", "dataset", "num_replicas", "rank", "shuffle", "seed", "drop_last"], "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 1, 1, 1, 1, 1], "arg_names": ["self", "dataset", "num_replicas", "rank", "shuffle", "seed", "drop_last"], "arg_types": [{".class": "Instance", "args": [{".class": "TypeVarType", "fullname": "torch.utils.data.distributed.T_co", "id": 1, "name": "T_co", "namespace": "torch.utils.data.distributed.DistributedSampler", "upper_bound": "builtins.object", "values": [], "variance": 1}], "type_ref": "torch.utils.data.distributed.DistributedSampler"}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}], "type_ref": "torch.utils.data.dataset.Dataset"}, {".class": "UnionType", "items": ["builtins.int", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.int", {".class": "NoneType"}]}, "builtins.bool", "builtins.int", "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of DistributedSampler", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "__iter__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": [null], "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.__iter__", "name": "__iter__", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": [{".class": "Instance", "args": [{".class": "TypeVarType", "fullname": "torch.utils.data.distributed.T_co", "id": 1, "name": "T_co", "namespace": "torch.utils.data.distributed.DistributedSampler", "upper_bound": "builtins.object", "values": [], "variance": 1}], "type_ref": "torch.utils.data.distributed.DistributedSampler"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__iter__ of DistributedSampler", "ret_type": {".class": "Instance", "args": [{".class": "TypeVarType", "fullname": "torch.utils.data.distributed.T_co", "id": 1, "name": "T_co", "namespace": "torch.utils.data.distributed.DistributedSampler", "upper_bound": "builtins.object", "values": [], "variance": 1}], "type_ref": "typing.Iterator"}, "type_guard": null, "variables": []}}}, "__len__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": [null], "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.__len__", "name": "__len__", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": [{".class": "Instance", "args": [{".class": "TypeVarType", "fullname": "torch.utils.data.distributed.T_co", "id": 1, "name": "T_co", "namespace": "torch.utils.data.distributed.DistributedSampler", "upper_bound": "builtins.object", "values": [], "variance": 1}], "type_ref": "torch.utils.data.distributed.DistributedSampler"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__len__ of DistributedSampler", "ret_type": "builtins.int", "type_guard": null, "variables": []}}}, "dataset": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.dataset", "name": "dataset", "type": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}], "type_ref": "torch.utils.data.dataset.Dataset"}}}, "drop_last": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.drop_last", "name": "drop_last", "type": "builtins.bool"}}, "epoch": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.epoch", "name": "epoch", "type": "builtins.int"}}, "num_replicas": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.num_replicas", "name": "num_replicas", "type": {".class": "UnionType", "items": ["builtins.int", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}]}}}, "num_samples": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.num_samples", "name": "num_samples", "type": "builtins.int"}}, "rank": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.rank", "name": "rank", "type": {".class": "UnionType", "items": ["builtins.int", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}]}}}, "seed": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.seed", "name": "seed", "type": "builtins.int"}}, "set_epoch": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "epoch"], "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.set_epoch", "name": "set_epoch", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "epoch"], "arg_types": [{".class": "Instance", "args": [{".class": "TypeVarType", "fullname": "torch.utils.data.distributed.T_co", "id": 1, "name": "T_co", "namespace": "torch.utils.data.distributed.DistributedSampler", "upper_bound": "builtins.object", "values": [], "variance": 1}], "type_ref": "torch.utils.data.distributed.DistributedSampler"}, "builtins.int"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "set_epoch of DistributedSampler", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "shuffle": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.shuffle", "name": "shuffle", "type": "builtins.bool"}}, "total_size": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.utils.data.distributed.DistributedSampler.total_size", "name": "total_size", "type": "builtins.int"}}}, "slots": null, "tuple_type": null, "type_vars": ["T_co"], "typeddict_type": null}}, "Iterator": {".class": "SymbolTableNode", "cross_ref": "typing.Iterator", "kind": "Gdef"}, "Optional": {".class": "SymbolTableNode", "cross_ref": "typing.Optional", "kind": "Gdef"}, "Sampler": {".class": "SymbolTableNode", "cross_ref": "torch.utils.data.sampler.Sampler", "kind": "Gdef"}, "T_co": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeVarExpr", "fullname": "torch.utils.data.distributed.T_co", "name": "T_co", "upper_bound": "builtins.object", "values": [], "variance": 1}}, "TypeVar": {".class": "SymbolTableNode", "cross_ref": "typing.TypeVar", "kind": "Gdef"}, "__annotations__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.data.distributed.__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.utils.data.distributed.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.data.distributed.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.data.distributed.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.utils.data.distributed.__package__", "name": "__package__", "type": "builtins.str"}}, "dist": {".class": "SymbolTableNode", "cross_ref": "torch.distributed", "kind": "Gdef"}, "math": {".class": "SymbolTableNode", "cross_ref": "math", "kind": "Gdef"}, "torch": {".class": "SymbolTableNode", "cross_ref": "torch", "kind": "Gdef"}}, "path": "/home/patrick/hf/lib/python3.7/site-packages/torch/utils/data/distributed.py"}