Skip to content

Commit b2de658

Browse files
author
zenghsh3
committed
refine code
1 parent a64200f commit b2de658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/tests/unittests/test_sampling_id_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def setUp(self):
2727
self.init_kernel_type()
2828
self.X = np.random.random((100, 10)).astype('float32')
2929
self.inputs = {"X": self.X}
30-
self.Y = np.random.random(100).astype('float32')
30+
self.Y = np.random.random(100).astype('int64')
3131
self.outputs = {'Out': self.Y}
3232
self.attrs = {'max': 1.0, 'min': 0.0, 'seed': 1}
3333

0 commit comments

Comments
 (0)