/external/pytorch/torch/_dynamo/variables/ |
D | lists.py | 84 return self.python_type()([x.as_python_constant() for x in self.items]) 87 assert self.python_type() is not SizeVariable 88 return self.python_type()(self._as_proxy()) 176 def python_type(self): member in RangeVariable 294 return self.python_type()(*self._as_proxy()) 396 def python_type(self): member in ListVariable 442 class_type = self.python_type() 450 if self.python_type() is not list: 456 def python_type(self): member in DequeVariable 528 def python_type(self): member in TupleVariable [all …]
|
D | torch_function.py | 175 return var.python_type() 186 return VariableBuilder(tx, TypeSource(var.source))(var.python_type()) 188 return SourcelessBuilder.create(tx, var.python_type()) 196 attr_val = inspect.getattr_static(var.python_type(), name) 296 def python_type(self): member in TensorWithTFOverrideVariable 384 )(inspect.getattr_static(self.python_type(), name))
|
D | dicts.py | 171 def python_type(self): member in ConstDictVariable 451 def python_type(self): member in SetVariable 562 def python_type(self): member in FrozensetVariable 651 def python_type(self): member in DictKeys 674 def python_type(self): member in DictValues 976 def python_type(self): member in PythonSysModulesVariable
|
D | tensor.py | 167 def python_type(self): member in TensorVariable 374 return UserDefinedClassVariable(self.python_type()) 1040 isinstance(a, ConstantVariable) and a.python_type() == int for a in args 1097 def python_type(self): member in SymNodeVariable 1252 def python_type(self): member in NumpyNdarrayVariable
|
D | iter.py | 345 def python_type(self): member in ZipVariable 454 def python_type(self): member in MapVariable
|
D | functions.py | 159 def python_type(self): member in UserFunctionVariable 309 def python_type(self): member in UserMethodVariable 579 def python_type(self): member in SkipFunctionVariable
|
D | base.py | 186 def python_type(self): member in VariableTracker
|
D | distributed.py | 41 def python_type(self): member in DistributedVariable
|
D | user_defined.py | 641 def python_type(self): member in UserDefinedObjectVariable 1251 return self.python_type()(*args, **kwargs) 1377 def python_type(self): member in RemovableHandleVariable
|
D | misc.py | 96 type_to_use = self.objvar.python_type() 1146 def python_type(self): member in PythonModuleVariable 1616 def python_type(self): member in RandomVariable
|
D | nn_module.py | 150 def python_type(self): member in NNModuleVariable 1020 and value.python_type() is torch.nn.Parameter
|
D | builtin.py | 1476 arg_type = arg.python_type() 1499 return issubclass(arg.python_type(), ty) 1899 py_type = obj.python_type()
|
D | higher_order_ops.py | 953 if input.python_type() != list: 985 if combine_result.python_type() != list:
|
/external/pytorch/torch/csrc/ |
D | Exceptions.h | 89 PyErr_SetString(e.python_type(), msg); \ 269 virtual PyObject* python_type() = 0; 289 PyObject* python_type() override { in python_type() function 297 PyObject* python_type() override { in python_type() function
|
/external/pytorch/torch/_refs/nn/functional/ |
D | __init__.py | 173 python_type = utils.dtype_to_type(a.dtype) 174 if not utils.is_weakly_lesser_type(type(alpha), python_type): 233 python_type = utils.dtype_to_type(a.dtype) 235 utils.is_weakly_lesser_type(type(input_scale), python_type), 239 utils.is_weakly_lesser_type(type(scale), python_type), 243 utils.is_weakly_lesser_type(type(alpha), python_type), 376 python_type = utils.dtype_to_type(a.dtype) 377 if not utils.is_weakly_lesser_type(type(negative_slope), python_type): 476 python_type = utils.dtype_to_type(a.dtype) 477 if not utils.is_weakly_lesser_type(type(beta), python_type):
|
/external/pytorch/torch/fx/experimental/ |
D | schema_type_annotation.py | 87 python_type = _torchscript_type_to_python_type(maybe_inferred_ts_type.type()) 88 … attr_proxy.node.type = python_type if not attr_proxy.node.type else attr_proxy.node.type
|
/external/pytorch/torch/_dynamo/ |
D | comptime.py | 78 def python_type(self): member in ComptimeVar 83 return self.__variable.python_type()
|
D | codegen.py | 173 and value.python_type() == float
|
D | output_graph.py | 1105 and not (isinstance(v, SymNodeVariable) and v.python_type() is float)
|
D | symbolic_convert.py | 3065 args=[arg.python_type() for arg in args],
|
/external/pytorch/torch/_inductor/codegen/ |
D | wrapper.py | 88 python_type = repr(arg.real_type) # type: ignore[attr-defined] 90 if python_type == "Tensor": 97 if python_type in PYTHON_TO_CPP: 98 cpp_type = PYTHON_TO_CPP[python_type] 103 container_match = re.findall(py_container + r"\[([a-zA-Z_]+)]", python_type) 117 python_type = repr(ret.real_type) # type: ignore[attr-defined] 123 cpp_type = python_to_cpp.get(python_type, None) 128 if python_type == "Tensor" and ret.alias_info is not None:
|
/external/pytorch/test/dynamo/ |
D | test_comptime.py | 405 SELF.assertIs(y.python_type(), torch.Tensor)
|
D | test_misc.py | 4156 self.assertEqual(ConstDictVariable(d1).python_type(), dict) 4158 ConstDictVariable(d2, collections.OrderedDict).python_type(), 8867 self.assertEqual(expected_variable.python_type(), type(device)) 8888 self.assertEqual(expected_variable.python_type(), type(dtype))
|
/external/pytorch/torch/_refs/ |
D | __init__.py | 647 python_type = utils.dtype_to_type(a.dtype) 648 if not utils.is_weakly_lesser_type(type(value), python_type): 1088 python_type = utils.dtype_to_type(dtype) 1089 if python_type != bool and not utils.is_weakly_lesser_type( 1090 type(alpha), python_type 1730 python_type = utils.dtype_to_type(dtype) 1731 if not utils.is_weakly_lesser_type(type(alpha), python_type): 1819 python_type = utils.dtype_to_type(dtype) 1821 utils.is_weakly_lesser_type(type(value), python_type), 1846 python_type = utils.dtype_to_type(dtype) [all …]
|
/external/pytorch/torch/_decomp/ |
D | decompositions.py | 2614 python_type = utils.dtype_to_type(x.dtype) 2616 python_type == bool 2617 or utils.is_weakly_lesser_type(type(alpha), python_type),
|