提交 b2de6589 编写于 作者: Z zenghsh3

refine code

上级 a64200f8
...@@ -27,7 +27,7 @@ class TestSamplingIdOp(OpTest): ...@@ -27,7 +27,7 @@ class TestSamplingIdOp(OpTest):
self.init_kernel_type() self.init_kernel_type()
self.X = np.random.random((100, 10)).astype('float32') self.X = np.random.random((100, 10)).astype('float32')
self.inputs = {"X": self.X} self.inputs = {"X": self.X}
self.Y = np.random.random(100).astype('float32') self.Y = np.random.random(100).astype('int64')
self.outputs = {'Out': self.Y} self.outputs = {'Out': self.Y}
self.attrs = {'max': 1.0, 'min': 0.0, 'seed': 1} self.attrs = {'max': 1.0, 'min': 0.0, 'seed': 1}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册