| {".class": "MypyFile", "_fullname": "torch.testing._comparison", "future_import_flags": [], "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "Any": {".class": "SymbolTableNode", "cross_ref": "typing.Any", "kind": "Gdef"}, "BooleanPair": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["torch.testing._comparison.Pair"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.BooleanPair", "name": "BooleanPair", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.testing._comparison.BooleanPair", "has_param_spec_type": false, "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.BooleanPair", "torch.testing._comparison.Pair", "abc.ABC", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3, 4], "arg_names": ["self", "actual", "expected", "id", "other_parameters"], "flags": [], "fullname": "torch.testing._comparison.BooleanPair.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3, 4], "arg_names": ["self", "actual", "expected", "id", "other_parameters"], "arg_types": ["torch.testing._comparison.BooleanPair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of BooleanPair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_process_inputs": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3], "arg_names": ["self", "actual", "expected", "id"], "flags": [], "fullname": "torch.testing._comparison.BooleanPair._process_inputs", "name": "_process_inputs", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3], "arg_names": ["self", "actual", "expected", "id"], "arg_types": ["torch.testing._comparison.BooleanPair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_process_inputs of BooleanPair", "ret_type": {".class": "TupleType", "implicit": false, "items": ["builtins.bool", "builtins.bool"], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}, "type_guard": null, "variables": []}}}, "_supported_types": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_property", "is_decorated"], "fullname": "torch.testing._comparison.BooleanPair._supported_types", "name": "_supported_types", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.BooleanPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_supported_types of BooleanPair", "ret_type": {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, "type_guard": null, "variables": []}}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_property", "is_ready"], "fullname": null, "name": "_supported_types", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.BooleanPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_supported_types of BooleanPair", "ret_type": {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, "type_guard": null, "variables": []}}}}, "_to_bool": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 3], "arg_names": ["self", "bool_like", "id"], "flags": [], "fullname": "torch.testing._comparison.BooleanPair._to_bool", "name": "_to_bool", "type": {".class": "CallableType", "arg_kinds": [0, 0, 3], "arg_names": ["self", "bool_like", "id"], "arg_types": ["torch.testing._comparison.BooleanPair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_to_bool of BooleanPair", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "compare": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.BooleanPair.compare", "name": "compare", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.BooleanPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "compare of BooleanPair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "Callable": {".class": "SymbolTableNode", "cross_ref": "typing.Callable", "kind": "Gdef"}, "Collection": {".class": "SymbolTableNode", "cross_ref": "typing.Collection", "kind": "Gdef"}, "ErrorMeta": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.Exception"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.ErrorMeta", "name": "ErrorMeta", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.testing._comparison.ErrorMeta", "has_param_spec_type": false, "metaclass_type": null, "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.ErrorMeta", "builtins.Exception", "builtins.BaseException", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 5], "arg_names": ["self", "type", "msg", "id"], "flags": [], "fullname": "torch.testing._comparison.ErrorMeta.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 5], "arg_names": ["self", "type", "msg", "id"], "arg_types": ["torch.testing._comparison.ErrorMeta", {".class": "TypeType", "item": "builtins.Exception"}, "builtins.str", {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of ErrorMeta", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "id": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.ErrorMeta.id", "name": "id", "type": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}}}, "msg": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.ErrorMeta.msg", "name": "msg", "type": "builtins.str"}}, "to_error": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.ErrorMeta.to_error", "name": "to_error", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.ErrorMeta"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "to_error of ErrorMeta", "ret_type": "builtins.Exception", "type_guard": null, "variables": []}}}, "type": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.ErrorMeta.type", "name": "type", "type": {".class": "TypeType", "item": "builtins.Exception"}}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "List": {".class": "SymbolTableNode", "cross_ref": "typing.List", "kind": "Gdef"}, "NUMPY_AVAILABLE": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["has_explicit_value"], "fullname": "torch.testing._comparison.NUMPY_AVAILABLE", "name": "NUMPY_AVAILABLE", "type": "builtins.bool"}}, "NoReturn": {".class": "SymbolTableNode", "cross_ref": "typing.NoReturn", "kind": "Gdef"}, "NonePair": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["torch.testing._comparison.Pair"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.NonePair", "name": "NonePair", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.testing._comparison.NonePair", "has_param_spec_type": false, "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.NonePair", "torch.testing._comparison.Pair", "abc.ABC", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 4], "arg_names": ["self", "actual", "expected", "other_parameters"], "flags": [], "fullname": "torch.testing._comparison.NonePair.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 4], "arg_names": ["self", "actual", "expected", "other_parameters"], "arg_types": ["torch.testing._comparison.NonePair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of NonePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "compare": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.NonePair.compare", "name": "compare", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.NonePair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "compare of NonePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "NumberPair": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["torch.testing._comparison.Pair"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.NumberPair", "name": "NumberPair", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.testing._comparison.NumberPair", "has_param_spec_type": false, "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.NumberPair", "torch.testing._comparison.Pair", "abc.ABC", "builtins.object"], "names": {".class": "SymbolTable", "_NUMBER_TYPES": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Var", "flags": ["is_initialized_in_class", "has_explicit_value"], "fullname": "torch.testing._comparison.NumberPair._NUMBER_TYPES", "name": "_NUMBER_TYPES", "type": {".class": "Instance", "args": ["builtins.type"], "type_ref": "builtins.tuple"}}}, "_TYPE_TO_DTYPE": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Var", "flags": ["is_initialized_in_class", "has_explicit_value"], "fullname": "torch.testing._comparison.NumberPair._TYPE_TO_DTYPE", "name": "_TYPE_TO_DTYPE", "type": {".class": "Instance", "args": ["builtins.type", "torch._C.dtype"], "type_ref": "builtins.dict"}}}, "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 5, 5, 5, 5, 5, 4], "arg_names": ["self", "actual", "expected", "id", "rtol", "atol", "equal_nan", "check_dtype", "other_parameters"], "flags": [], "fullname": "torch.testing._comparison.NumberPair.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 5, 5, 5, 5, 5, 4], "arg_names": ["self", "actual", "expected", "id", "rtol", "atol", "equal_nan", "check_dtype", "other_parameters"], "arg_types": ["torch.testing._comparison.NumberPair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}, {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, "builtins.bool", "builtins.bool", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of NumberPair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_process_inputs": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3], "arg_names": ["self", "actual", "expected", "id"], "flags": [], "fullname": "torch.testing._comparison.NumberPair._process_inputs", "name": "_process_inputs", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3], "arg_names": ["self", "actual", "expected", "id"], "arg_types": ["torch.testing._comparison.NumberPair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_process_inputs of NumberPair", "ret_type": {".class": "TupleType", "implicit": false, "items": [{".class": "UnionType", "items": ["builtins.int", "builtins.float", "builtins.complex"]}, {".class": "UnionType", "items": ["builtins.int", "builtins.float", "builtins.complex"]}], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}, "type_guard": null, "variables": []}}}, "_supported_types": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_property", "is_decorated"], "fullname": "torch.testing._comparison.NumberPair._supported_types", "name": "_supported_types", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.NumberPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_supported_types of NumberPair", "ret_type": {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, "type_guard": null, "variables": []}}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_property", "is_ready"], "fullname": null, "name": "_supported_types", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.NumberPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_supported_types of NumberPair", "ret_type": {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, "type_guard": null, "variables": []}}}}, "_to_number": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 3], "arg_names": ["self", "number_like", "id"], "flags": [], "fullname": "torch.testing._comparison.NumberPair._to_number", "name": "_to_number", "type": {".class": "CallableType", "arg_kinds": [0, 0, 3], "arg_names": ["self", "number_like", "id"], "arg_types": ["torch.testing._comparison.NumberPair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_to_number of NumberPair", "ret_type": {".class": "UnionType", "items": ["builtins.int", "builtins.float", "builtins.complex"]}, "type_guard": null, "variables": []}}}, "atol": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.NumberPair.atol", "name": "atol", "type": "builtins.float"}}, "check_dtype": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.NumberPair.check_dtype", "name": "check_dtype", "type": "builtins.bool"}}, "compare": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.NumberPair.compare", "name": "compare", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.NumberPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "compare of NumberPair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "equal_nan": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.NumberPair.equal_nan", "name": "equal_nan", "type": "builtins.bool"}}, "extra_repr": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.NumberPair.extra_repr", "name": "extra_repr", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.NumberPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "extra_repr of NumberPair", "ret_type": {".class": "Instance", "args": ["builtins.str"], "type_ref": "typing.Sequence"}, "type_guard": null, "variables": []}}}, "rtol": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.NumberPair.rtol", "name": "rtol", "type": "builtins.float"}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "ObjectPair": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["torch.testing._comparison.Pair"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.ObjectPair", "name": "ObjectPair", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.testing._comparison.ObjectPair", "has_param_spec_type": false, "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.ObjectPair", "torch.testing._comparison.Pair", "abc.ABC", "builtins.object"], "names": {".class": "SymbolTable", "compare": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.ObjectPair.compare", "name": "compare", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.ObjectPair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "compare of ObjectPair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "Optional": {".class": "SymbolTableNode", "cross_ref": "typing.Optional", "kind": "Gdef"}, "Pair": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": ["compare"], "bases": ["abc.ABC"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.Pair", "name": "Pair", "type_vars": []}, "deletable_attributes": [], "flags": ["is_abstract"], "fullname": "torch.testing._comparison.Pair", "has_param_spec_type": false, "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.Pair", "abc.ABC", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 5, 5, 4], "arg_names": ["self", "actual", "expected", "id", "msg", "unknown_parameters"], "flags": [], "fullname": "torch.testing._comparison.Pair.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 5, 5, 4], "arg_names": ["self", "actual", "expected", "id", "msg", "unknown_parameters"], "arg_types": ["torch.testing._comparison.Pair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}, {".class": "UnionType", "items": ["builtins.str", {".class": "NoneType"}]}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of Pair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "__repr__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": [null], "flags": [], "fullname": "torch.testing._comparison.Pair.__repr__", "name": "__repr__", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["torch.testing._comparison.Pair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__repr__ of Pair", "ret_type": "builtins.str", "type_guard": null, "variables": []}}}, "_check_inputs_isinstance": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [2, 3], "arg_names": ["inputs", "cls"], "flags": ["is_static", "is_decorated"], "fullname": "torch.testing._comparison.Pair._check_inputs_isinstance", "name": "_check_inputs_isinstance", "type": {".class": "CallableType", "arg_kinds": [2, 3], "arg_names": ["inputs", "cls"], "arg_types": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "UnionType", "items": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}, {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_check_inputs_isinstance of Pair", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_staticmethod", "is_ready"], "fullname": null, "name": "_check_inputs_isinstance", "type": {".class": "CallableType", "arg_kinds": [2, 3], "arg_names": ["inputs", "cls"], "arg_types": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "UnionType", "items": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}, {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_check_inputs_isinstance of Pair", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}}, "_make_error_meta": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 5], "arg_names": ["self", "type", "msg", "id"], "flags": [], "fullname": "torch.testing._comparison.Pair._make_error_meta", "name": "_make_error_meta", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 5], "arg_names": ["self", "type", "msg", "id"], "arg_types": ["torch.testing._comparison.Pair", {".class": "TypeType", "item": "builtins.Exception"}, "builtins.str", {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_make_error_meta of Pair", "ret_type": "torch.testing._comparison.ErrorMeta", "type_guard": null, "variables": []}}}, "_unknown_parameters": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.Pair._unknown_parameters", "name": "_unknown_parameters", "type": {".class": "Instance", "args": ["builtins.str", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.dict"}}}, "actual": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.Pair.actual", "name": "actual", "type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}}}, "compare": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_decorated", "is_abstract"], "fullname": "torch.testing._comparison.Pair.compare", "name": "compare", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.Pair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "compare of Pair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_ready"], "fullname": null, "name": "compare", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.Pair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "compare of Pair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}}, "expected": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.Pair.expected", "name": "expected", "type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}}}, "extra_repr": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.Pair.extra_repr", "name": "extra_repr", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.Pair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "extra_repr of Pair", "ret_type": {".class": "Instance", "args": [{".class": "UnionType", "items": ["builtins.str", {".class": "TupleType", "implicit": false, "items": ["builtins.str", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}]}], "type_ref": "typing.Sequence"}, "type_guard": null, "variables": []}}}, "id": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.Pair.id", "name": "id", "type": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}}}, "msg": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.Pair.msg", "name": "msg", "type": {".class": "UnionType", "items": ["builtins.str", {".class": "NoneType"}]}}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "Sequence": {".class": "SymbolTableNode", "cross_ref": "typing.Sequence", "kind": "Gdef"}, "TensorLikePair": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["torch.testing._comparison.Pair"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.TensorLikePair", "name": "TensorLikePair", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair", "has_param_spec_type": false, "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.TensorLikePair", "torch.testing._comparison.Pair", "abc.ABC", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4], "arg_names": ["self", "actual", "expected", "id", "allow_subclasses", "rtol", "atol", "equal_nan", "check_device", "check_dtype", "check_layout", "check_stride", "check_is_coalesced", "other_parameters"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4], "arg_names": ["self", "actual", "expected", "id", "allow_subclasses", "rtol", "atol", "equal_nan", "check_device", "check_dtype", "check_layout", "check_stride", "check_is_coalesced", "other_parameters"], "arg_types": ["torch.testing._comparison.TensorLikePair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}, "builtins.bool", {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, "builtins.bool", "builtins.bool", "builtins.bool", "builtins.bool", "builtins.bool", "builtins.bool", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_check_supported": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 3], "arg_names": ["self", "tensor", "id"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._check_supported", "name": "_check_supported", "type": {".class": "CallableType", "arg_kinds": [0, 0, 3], "arg_names": ["self", "tensor", "id"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_check_supported of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_compare_attributes": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._compare_attributes", "name": "_compare_attributes", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_compare_attributes of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_compare_quantized_values": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3, 3, 3], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._compare_quantized_values", "name": "_compare_quantized_values", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3, 3, 3], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor", "builtins.float", "builtins.float", "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_compare_quantized_values of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_compare_regular_values_close": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3, 3, 3, 5], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan", "identifier"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._compare_regular_values_close", "name": "_compare_regular_values_close", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3, 3, 3, 5], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan", "identifier"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor", "builtins.float", "builtins.float", "builtins.bool", {".class": "UnionType", "items": ["builtins.str", {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["builtins.str"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": null, "ret_type": "builtins.str", "type_guard": null, "variables": []}, {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_compare_regular_values_close of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_compare_regular_values_equal": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 5, 5], "arg_names": ["self", "actual", "expected", "equal_nan", "identifier"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._compare_regular_values_equal", "name": "_compare_regular_values_equal", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 5, 5], "arg_names": ["self", "actual", "expected", "equal_nan", "identifier"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor", "builtins.bool", {".class": "UnionType", "items": ["builtins.str", {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["builtins.str"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": null, "ret_type": "builtins.str", "type_guard": null, "variables": []}, {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_compare_regular_values_equal of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_compare_sparse_coo_values": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3, 3, 3], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._compare_sparse_coo_values", "name": "_compare_sparse_coo_values", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3, 3, 3], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor", "builtins.float", "builtins.float", "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_compare_sparse_coo_values of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_compare_sparse_csr_values": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3, 3, 3], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._compare_sparse_csr_values", "name": "_compare_sparse_csr_values", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3, 3, 3], "arg_names": ["self", "actual", "expected", "rtol", "atol", "equal_nan"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor", "builtins.float", "builtins.float", "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_compare_sparse_csr_values of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_compare_values": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._compare_values", "name": "_compare_values", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_compare_values of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "_equalize_attributes": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._equalize_attributes", "name": "_equalize_attributes", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_equalize_attributes of TensorLikePair", "ret_type": {".class": "TupleType", "implicit": false, "items": ["torch._tensor.Tensor", "torch._tensor.Tensor"], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}, "type_guard": null, "variables": []}}}, "_handle_meta_tensor_data_access": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": ["is_generator", "is_decorated"], "fullname": "torch.testing._comparison.TensorLikePair._handle_meta_tensor_data_access", "name": "_handle_meta_tensor_data_access", "type": null}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_ready"], "fullname": null, "name": "_handle_meta_tensor_data_access", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.TensorLikePair"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_handle_meta_tensor_data_access of TensorLikePair", "ret_type": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_of_any": 7}], "type_ref": "contextlib._GeneratorContextManager"}, "type_guard": null, "variables": []}}}}, "_process_inputs": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3, 3], "arg_names": ["self", "actual", "expected", "id", "allow_subclasses"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._process_inputs", "name": "_process_inputs", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3, 3], "arg_names": ["self", "actual", "expected", "id", "allow_subclasses"], "arg_types": ["torch.testing._comparison.TensorLikePair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}, "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_process_inputs of TensorLikePair", "ret_type": {".class": "TupleType", "implicit": false, "items": ["torch._tensor.Tensor", "torch._tensor.Tensor"], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}, "type_guard": null, "variables": []}}}, "_promote_for_comparison": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._promote_for_comparison", "name": "_promote_for_comparison", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "actual", "expected"], "arg_types": ["torch.testing._comparison.TensorLikePair", "torch._tensor.Tensor", "torch._tensor.Tensor"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_promote_for_comparison of TensorLikePair", "ret_type": {".class": "TupleType", "implicit": false, "items": ["torch._tensor.Tensor", "torch._tensor.Tensor"], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}, "type_guard": null, "variables": []}}}, "_to_tensor": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "tensor_like"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair._to_tensor", "name": "_to_tensor", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "tensor_like"], "arg_types": ["torch.testing._comparison.TensorLikePair", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_to_tensor of TensorLikePair", "ret_type": "torch._tensor.Tensor", "type_guard": null, "variables": []}}}, "atol": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.atol", "name": "atol", "type": "builtins.float"}}, "check_device": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.check_device", "name": "check_device", "type": "builtins.bool"}}, "check_dtype": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.check_dtype", "name": "check_dtype", "type": "builtins.bool"}}, "check_is_coalesced": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.check_is_coalesced", "name": "check_is_coalesced", "type": "builtins.bool"}}, "check_layout": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.check_layout", "name": "check_layout", "type": "builtins.bool"}}, "check_stride": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.check_stride", "name": "check_stride", "type": "builtins.bool"}}, "compare": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.compare", "name": "compare", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.TensorLikePair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "compare of TensorLikePair", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "equal_nan": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.equal_nan", "name": "equal_nan", "type": "builtins.bool"}}, "extra_repr": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.extra_repr", "name": "extra_repr", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["torch.testing._comparison.TensorLikePair"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "extra_repr of TensorLikePair", "ret_type": {".class": "Instance", "args": ["builtins.str"], "type_ref": "typing.Sequence"}, "type_guard": null, "variables": []}}}, "rtol": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.testing._comparison.TensorLikePair.rtol", "name": "rtol", "type": "builtins.float"}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "Tuple": {".class": "SymbolTableNode", "cross_ref": "typing.Tuple", "kind": "Gdef"}, "Type": {".class": "SymbolTableNode", "cross_ref": "typing.Type", "kind": "Gdef"}, "Union": {".class": "SymbolTableNode", "cross_ref": "typing.Union", "kind": "Gdef"}, "UnsupportedInputs": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.Exception"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.testing._comparison.UnsupportedInputs", "name": "UnsupportedInputs", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.testing._comparison.UnsupportedInputs", "has_param_spec_type": false, "metaclass_type": null, "metadata": {}, "module_name": "torch.testing._comparison", "mro": ["torch.testing._comparison.UnsupportedInputs", "builtins.Exception", "builtins.BaseException", "builtins.object"], "names": {".class": "SymbolTable"}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "_DTYPE_PRECISIONS": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["has_explicit_value"], "fullname": "torch.testing._comparison._DTYPE_PRECISIONS", "name": "_DTYPE_PRECISIONS", "type": {".class": "Instance", "args": ["torch._C.dtype", {".class": "TupleType", "implicit": false, "items": ["builtins.float", "builtins.float"], "partial_fallback": {".class": "Instance", "args": ["builtins.float"], "type_ref": "builtins.tuple"}}], "type_ref": "builtins.dict"}}}, "__annotations__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.testing._comparison.__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.testing._comparison.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.testing._comparison.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.testing._comparison.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.testing._comparison.__package__", "name": "__package__", "type": "builtins.str"}}, "_make_mismatch_msg": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [3, 5, 5, 3, 5, 3, 3, 5, 3], "arg_names": ["default_identifier", "identifier", "extra", "abs_diff", "abs_diff_idx", "atol", "rel_diff", "rel_diff_idx", "rtol"], "flags": [], "fullname": "torch.testing._comparison._make_mismatch_msg", "name": "_make_mismatch_msg", "type": {".class": "CallableType", "arg_kinds": [3, 5, 5, 3, 5, 3, 3, 5, 3], "arg_names": ["default_identifier", "identifier", "extra", "abs_diff", "abs_diff_idx", "atol", "rel_diff", "rel_diff_idx", "rtol"], "arg_types": ["builtins.str", {".class": "UnionType", "items": ["builtins.str", {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["builtins.str"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": null, "ret_type": "builtins.str", "type_guard": null, "variables": []}, {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.str", {".class": "NoneType"}]}, "builtins.float", {".class": "UnionType", "items": ["builtins.int", {".class": "Instance", "args": ["builtins.int"], "type_ref": "builtins.tuple"}, {".class": "NoneType"}]}, "builtins.float", "builtins.float", {".class": "UnionType", "items": ["builtins.int", {".class": "Instance", "args": ["builtins.int"], "type_ref": "builtins.tuple"}, {".class": "NoneType"}]}, "builtins.float"], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_make_mismatch_msg", "ret_type": "builtins.str", "type_guard": null, "variables": []}}}, "_unravel_index": {".class": "SymbolTableNode", "cross_ref": "torch.testing._core._unravel_index", "kind": "Gdef"}, "abc": {".class": "SymbolTableNode", "cross_ref": "abc", "kind": "Gdef"}, "assert_close": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5], "arg_names": ["actual", "expected", "allow_subclasses", "rtol", "atol", "equal_nan", "check_device", "check_dtype", "check_layout", "check_stride", "msg"], "flags": [], "fullname": "torch.testing._comparison.assert_close", "name": "assert_close", "type": {".class": "CallableType", "arg_kinds": [0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5], "arg_names": ["actual", "expected", "allow_subclasses", "rtol", "atol", "equal_nan", "check_device", "check_dtype", "check_layout", "check_stride", "msg"], "arg_types": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, "builtins.bool", {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, "builtins.bool", "builtins.bool", "builtins.bool", "builtins.bool", "builtins.bool", {".class": "UnionType", "items": ["builtins.str", {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "assert_close", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}, "assert_equal": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 5, 5, 5, 4], "arg_names": ["actual", "expected", "pair_types", "sequence_types", "mapping_types", "options"], "flags": [], "fullname": "torch.testing._comparison.assert_equal", "name": "assert_equal", "type": {".class": "CallableType", "arg_kinds": [0, 0, 5, 5, 5, 4], "arg_names": ["actual", "expected", "pair_types", "sequence_types", "mapping_types", "options"], "arg_types": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "TypeType", "item": "torch.testing._comparison.Pair"}], "type_ref": "typing.Sequence"}, {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "assert_equal", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "cmath": {".class": "SymbolTableNode", "cross_ref": "cmath", "kind": "Gdef"}, "collections": {".class": "SymbolTableNode", "cross_ref": "collections", "kind": "Gdef"}, "contextlib": {".class": "SymbolTableNode", "cross_ref": "contextlib", "kind": "Gdef"}, "default_tolerances": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [2], "arg_names": ["inputs"], "flags": [], "fullname": "torch.testing._comparison.default_tolerances", "name": "default_tolerances", "type": {".class": "CallableType", "arg_kinds": [2], "arg_names": ["inputs"], "arg_types": [{".class": "UnionType", "items": ["torch._tensor.Tensor", "torch._C.dtype"]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "default_tolerances", "ret_type": {".class": "TupleType", "implicit": false, "items": ["builtins.float", "builtins.float"], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}, "type_guard": null, "variables": []}}}, "get_tolerances": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [2, 3, 3, 5], "arg_names": ["inputs", "rtol", "atol", "id"], "flags": [], "fullname": "torch.testing._comparison.get_tolerances", "name": "get_tolerances", "type": {".class": "CallableType", "arg_kinds": [2, 3, 3, 5], "arg_names": ["inputs", "rtol", "atol", "id"], "arg_types": [{".class": "UnionType", "items": ["torch._tensor.Tensor", "torch._C.dtype"]}, {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "get_tolerances", "ret_type": {".class": "TupleType", "implicit": false, "items": ["builtins.float", "builtins.float"], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}, "type_guard": null, "variables": []}}}, "make_scalar_mismatch_msg": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 3, 3, 5], "arg_names": ["actual", "expected", "rtol", "atol", "identifier"], "flags": [], "fullname": "torch.testing._comparison.make_scalar_mismatch_msg", "name": "make_scalar_mismatch_msg", "type": {".class": "CallableType", "arg_kinds": [0, 0, 3, 3, 5], "arg_names": ["actual", "expected", "rtol", "atol", "identifier"], "arg_types": [{".class": "UnionType", "items": ["builtins.int", "builtins.float", "builtins.complex"]}, {".class": "UnionType", "items": ["builtins.int", "builtins.float", "builtins.complex"]}, "builtins.float", "builtins.float", {".class": "UnionType", "items": ["builtins.str", {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["builtins.str"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": null, "ret_type": "builtins.str", "type_guard": null, "variables": []}, {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "make_scalar_mismatch_msg", "ret_type": "builtins.str", "type_guard": null, "variables": []}}}, "make_tensor_mismatch_msg": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 3, 3, 5], "arg_names": ["actual", "expected", "mismatches", "rtol", "atol", "identifier"], "flags": [], "fullname": "torch.testing._comparison.make_tensor_mismatch_msg", "name": "make_tensor_mismatch_msg", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 3, 3, 5], "arg_names": ["actual", "expected", "mismatches", "rtol", "atol", "identifier"], "arg_types": ["torch._tensor.Tensor", "torch._tensor.Tensor", "torch._tensor.Tensor", "builtins.float", "builtins.float", {".class": "UnionType", "items": ["builtins.str", {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["builtins.str"], "bound_args": [], "def_extras": {}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": null, "ret_type": "builtins.str", "type_guard": null, "variables": []}, {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "make_tensor_mismatch_msg", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}, "np": {".class": "SymbolTableNode", "cross_ref": "numpy", "kind": "Gdef"}, "originate_pairs": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 3, 5, 5, 5, 4], "arg_names": ["actual", "expected", "pair_types", "sequence_types", "mapping_types", "id", "options"], "flags": [], "fullname": "torch.testing._comparison.originate_pairs", "name": "originate_pairs", "type": {".class": "CallableType", "arg_kinds": [0, 0, 3, 5, 5, 5, 4], "arg_names": ["actual", "expected", "pair_types", "sequence_types", "mapping_types", "id", "options"], "arg_types": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "Instance", "args": [{".class": "TypeType", "item": "torch.testing._comparison.Pair"}], "type_ref": "typing.Sequence"}, {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, {".class": "Instance", "args": [{".class": "TypeType", "item": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 4}}], "type_ref": "builtins.tuple"}, {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "builtins.tuple"}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "originate_pairs", "ret_type": {".class": "Instance", "args": ["torch.testing._comparison.Pair"], "type_ref": "builtins.list"}, "type_guard": null, "variables": []}}}, "torch": {".class": "SymbolTableNode", "cross_ref": "torch", "kind": "Gdef"}}, "path": "/home/patrick/hf/lib/python3.7/site-packages/torch/testing/_comparison.py"} |