test_mul_op.py 472 字节
Newer Older
Q
qijun 已提交
1 2 3 4 5 6 7 8 9 10
import unittest
from op_test_util import OpTestMeta
import numpy as np


class TestMulOp(unittest.TestCase):
    __metaclass__ = OpTestMeta

    def setUp(self):
        self.type = "mul"
D
dangqingqing 已提交
11 12 13 14 15
        self.inputs = {
            'X': np.random.random((32, 84)).astype("float32"),
            'Y': np.random.random((84, 100)).astype("float32")
        }
        self.outputs = {'Out': np.dot(self.inputs['X'], self.inputs['Y'])}
Q
qijun 已提交
16 17 18 19


if __name__ == '__main__':
    unittest.main()