Searched refs:_to_tensor (Results 1 – 6 of 6) sorted by relevance
/third_party/mindspore/mindspore/numpy/ |
D | logic_ops.py | 24 from .utils import _check_input_tensor, _to_tensor, _isnan 491 a, b = _to_tensor(a, b) 499 rtol = _to_tensor(rtol).astype("float32") 500 atol = _to_tensor(atol).astype("float32") 553 ar1, ar2 = _to_tensor(ar1, ar2) 600 element = _to_tensor(element) 785 return _to_tensor(False) 822 return _to_tensor(False) 856 x = _to_tensor(x) 907 a = _to_tensor(a)
|
D | math_ops.py | 46 _to_tensor, _to_tensor_origin_dtype, _isnan 288 return subtract(x1, F.neg_tensor(_to_tensor(x2)), dtype=dtype) 400 x1, x2 = _to_tensor(x1, x2) 912 x = _to_tensor(x) 953 x = _to_tensor(x) 2007 to_begin = _to_tensor(to_begin).ravel() 2017 to_end = _to_tensor(to_end).ravel() 2058 y = _to_tensor(y) 2067 x = _to_tensor(x) 2070 dx = _to_tensor(dx) [all …]
|
D | array_creations.py | 32 _expand, _to_tensor, _slice_along_axis, _callable 1806 m_minus_one = _to_tensor(M - 1) 1807 return _to_tensor(1) - F.absolute(_to_tensor(2)*n - m_minus_one)/m_minus_one 1841 return (_to_tensor(0.42) + _to_tensor(0.5)*F.cos(_to_tensor(pi/(M - 1))*n_doubled) + 1842 _to_tensor(0.08)*F.cos(_to_tensor(2*pi/(M - 1))*n_doubled)) 1873 return _to_tensor(0.54) - _to_tensor(0.46)*F.cos(_to_tensor(2*pi/(M - 1))*n) 1904 return _to_tensor(0.5) - _to_tensor(0.5)*F.cos(_to_tensor(2*pi/(M - 1))*n) 2094 a = _to_tensor(a) 2096 weights = _to_tensor(weights) 2100 bins = _to_tensor(bins) [all …]
|
D | array_ops.py | 26 _check_input_tensor, _broadcast_to, _to_tensor, _callable 700 condition, x, y = _to_tensor(condition, x, y) 1927 a = _to_tensor(a) 2039 condlist, choicelist = _to_tensor(condlist, choicelist) 2160 a = _to_tensor(a) 2165 choices = _to_tensor(*choices) 2175 choices = _to_tensor(choices) 2216 a = _to_tensor(a) 2326 tensor_list.append(_to_tensor(arr)) 2328 return atleast_1d(_to_tensor(arrs)) [all …]
|
D | utils.py | 123 def _to_tensor(*args): function
|
/third_party/mindspore/mindspore/train/ |
D | _utils.py | 147 def _to_tensor(elem, scaling_sens=None): function
|