forked from mindspore-Ecosystem/mindspore
Add random seed for SparseSegmentMean test case.
This commit is contained in:
parent
4875e3dfc8
commit
17653575c5
|
@ -52,6 +52,7 @@ def test_net(data_type, index_type, error):
|
|||
Description: test cases for SparseSegmentMean operator.
|
||||
Expectation: the result match expectation.
|
||||
"""
|
||||
np.random.seed(0)
|
||||
data_shape = (4, 5, 6)
|
||||
index_shape = (5,)
|
||||
x = np.random.random(size=data_shape).astype(data_type)
|
||||
|
|
Loading…
Reference in New Issue