Home
last modified time | relevance | path

Searched refs:ravel (Results 1 – 11 of 11) sorted by relevance

/third_party/mindspore/tests/mindspore_test_framework/utils/
Dcheck_gradient.py198 original = x.ravel().view()[row]
199 x.ravel().view()[row] += self.delta
201 x.ravel().view()[row] = original
202 x.ravel().view()[row] -= self.delta
204 x.ravel().view()[row] = original
212 theoretical_grad = self.gout[index].ravel().view()[row]
248 original = x.ravel().view()[row]
249 x.ravel().view()[row] += self.delta
251 x.ravel().view()[row] = original
252 x.ravel().view()[row] -= self.delta
[all …]
/third_party/mindspore/mindspore/numpy/
Darray_ops.py297 def ravel(x): function
323 return x.ravel()
405 return ravel(arrays)
418 flattened_arrays += (ravel(arr),)
469 arr = arr.ravel()
470 values = values.ravel()
990 x = ravel(x)
1084 a = a.ravel()
1783 arr = ravel(arr)
2452 return res.ravel()
Dlogic_ops.py554 ar1 = F.expand_dims(ar1.ravel(), -1)
555 ar2 = ar2.ravel()
Dmath_ops.py35 from .array_ops import ravel, expand_dims, moveaxis, concatenate, flip, stack, atleast_1d, \
804 a = ravel(a)
806 b = ravel(b)
2005 to_begin = to_begin.ravel()
2007 to_begin = _to_tensor(to_begin).ravel()
2011 combined += (diff(ary.ravel()),)
2015 to_end = to_end.ravel()
2017 to_end = _to_tensor(to_end).ravel()
4652 return F.reduce_sum(idx_mapping.astype(mstype.float32), 1).ravel()
4712 weights = weights.ravel()
[all …]
D__init__.py30 ravel, concatenate, where, atleast_1d, atleast_2d, atleast_3d,
Darray_creations.py38 from .array_ops import ravel, concatenate, broadcast_arrays, reshape, broadcast_to, flip, \
1288 grids.append(ravel(x))
1566 v = ravel(v)
2107 a = a.ravel().astype(mstype.float32)
/third_party/mindspore/mindspore/_extends/parse/
Dstandard_method.py299 def ravel(x): function
462 x = ravel(x)
498 x = ravel(x)
544 x = x.ravel()
711 flattened = x.ravel()
885 a = x.ravel()
1383 x = ravel(x)
/third_party/mindspore/mindspore/common/
Dtensor.py642 def ravel(self): member in Tensor
842 a = a.ravel()
876 a = a.ravel()
923 x = x.ravel()
1338 flattened = self.ravel()
1512 a = self.ravel()
1872 input_x = self.ravel()
/third_party/mindspore/mindspore/nn/metrics/
Dauc.py85 return np.ravel(y)
/third_party/mindspore/tests/vm_impl/
Darray_ops_vm_impl.py177 return Tensor(output.ravel())
/third_party/mindspore/tests/st/numpy_native/
Dtest_array_ops.py332 a = mnp.ravel(input_tensor)
337 a = onp.ravel(input_array)
1294 x = mnp.ravel(x)
1409 assert tensor_list.ravel().shape == (8,)
1410 assert tensor_list.ravel().asnumpy().tolist() == [