Fork自 PaddlePaddle / Paddle
体验新版 GitCode,发现更多精彩内容 >>
import unittest from op_test_util import OpTestMeta import numpy class TestAddOp(unittest.TestCase): __metaclass__ = OpTestMeta def setUp(self): self.type = "add_two"
self.X = numpy.random.random((102, 105)).astype("float32") self.Y = numpy.random.random((102, 105)).astype("float32")
self.Out = self.X + self.Y if __name__ == '__main__': unittest.main()