@@ -87,6 +87,18 @@ def test_multiply_static(self):
8787 res = self ._run_static_graph_case (x_data , y_data )
8888 np .testing .assert_allclose (res , np .outer (x_data , y_data ), rtol = 1e-05 )
8989
90+ # test static computation graph: 3-d int32 big array
91+ x_data = np .random .randint (- 80000 , 80000 , [5 , 10 , 10 ]).astype (np .int32 )
92+ y_data = np .random .randint (- 80000 , 80000 , [2 , 10 ]).astype (np .int32 )
93+ res = self ._run_static_graph_case (x_data , y_data )
94+ np .testing .assert_allclose (res , np .outer (x_data , y_data ), rtol = 1e-05 )
95+
96+ # test static computation graph: 3-d int64 big array
97+ x_data = np .random .randint (- 80000 , 80000 , [5 , 10 , 10 ]).astype (np .int64 )
98+ y_data = np .random .randint (- 80000 , 80000 , [2 , 10 ]).astype (np .int64 )
99+ res = self ._run_static_graph_case (x_data , y_data )
100+ np .testing .assert_allclose (res , np .outer (x_data , y_data ), rtol = 1e-05 )
101+
90102 def test_multiply_dynamic (self ):
91103 # test dynamic computation graph: 3-d array
92104 x_data = np .random .rand (5 , 10 , 10 ).astype (np .float64 )
@@ -138,6 +150,18 @@ def test_multiply_dynamic(self):
138150 res = self ._run_dynamic_graph_case (x_data , y_data )
139151 np .testing .assert_allclose (res , np .outer (x_data , y_data ), rtol = 1e-05 )
140152
153+ # test dynamic computation graph: 3-d int32 big array
154+ x_data = np .random .randint (- 80000 , 80000 , [5 , 10 , 10 ]).astype (np .int32 )
155+ y_data = np .random .randint (- 80000 , 80000 , [2 , 10 ]).astype (np .int32 )
156+ res = self ._run_dynamic_graph_case (x_data , y_data )
157+ np .testing .assert_allclose (res , np .outer (x_data , y_data ), rtol = 1e-05 )
158+
159+ # test dynamic computation graph: 3-d int64 big array
160+ x_data = np .random .randint (- 80000 , 80000 , [5 , 10 , 10 ]).astype (np .int64 )
161+ y_data = np .random .randint (- 80000 , 80000 , [2 , 10 ]).astype (np .int64 )
162+ res = self ._run_dynamic_graph_case (x_data , y_data )
163+ np .testing .assert_allclose (res , np .outer (x_data , y_data ), rtol = 1e-05 )
164+
141165
142166class TestMultiplyError (unittest .TestCase ):
143167
0 commit comments