Searched refs:Tensor_ (Results 1 – 5 of 5) sorted by relevance
/third_party/mindspore/mindspore/common/ |
D | parameter.py | 27 from .._c_expression import Tensor as Tensor_ unknown 59 class Parameter(Tensor_): 155 if isinstance(default_input, (Tensor_, Tensor)): 156 Tensor_.__init__(self, default_input.dtype, default_input.shape) 158 Tensor_.__init__(self, mstype.int64, ()) 160 Tensor_.__init__(self, mstype.float32, ()) 162 Tensor_.__init__(self, default_input)
|
D | tensor.py | 23 from .._c_expression import Tensor as Tensor_ unknown 33 class Tensor(Tensor_): 93 … (Tensor_, np.ndarray, list, tuple, float, int, bool, complex), 'Tensor') 110 Tensor_.__init__(self, input_data) 112 Tensor_.__init__(self, input_data, dtype) 114 Tensor_.__init__(self, dtype, shape) 127 Tensor_.data_sync(self, False) 128 return Tensor_.__repr__(self) 343 return Tensor(Tensor_.from_numpy(array)) 422 return Tensor_.asnumpy(self) [all …]
|
/third_party/mindspore/mindspore/numpy/ |
D | utils_const.py | 26 from .._c_expression import Tensor as Tensor_ unknown 259 return Tensor_(dtype, shape)
|
D | array_creations.py | 28 from .._c_expression import Tensor as Tensor_ unknown 750 return Tensor_(dtype, shape) 1354 if isinstance(grids, Tensor_):
|
/third_party/mindspore/mindspore/ |
D | _checkparam.py | 29 from mindspore._c_expression import Tensor as Tensor_ unknown 859 return Tensor_(dtype, shape)
|