Exemplo n.º 1
0
 def test_op_norm(self):
     _ = Numlike().op_norm((3, 3, 3, 3), 1, 1, 1, 1)
Exemplo n.º 2
0
 def test_sum(self):
     _ = Numlike().sum(0)
Exemplo n.º 3
0
 def test_T(self):
     _ = Numlike().T
Exemplo n.º 4
0
 def test_max(self):
     _ = Numlike().max(Numlike())
Exemplo n.º 5
0
 def test_shape(self):
     _ = Numlike().reshape((1, 2, 3))
Exemplo n.º 6
0
 def test_exp(self):
     _ = Numlike().exp()
Exemplo n.º 7
0
 def test_power(self):
     _ = Numlike().power(3.0)
Exemplo n.º 8
0
 def test_op_d_conv(self):
     _ = Numlike().op_d_conv((1, 1, 1, 1), (1, 1, 1), Numlike(), (1, 1),
                             (1, 1), 1)
Exemplo n.º 9
0
 def test_derest_output(self):
     _ = Numlike.derest_output(3)
Exemplo n.º 10
0
 def test_op_d_avg_pool(self):
     _ = Numlike().op_d_avg_pool(Numlike(), (2, 2, 2, 2), (3, 3), (3, 3),
                                 (1, 1))
Exemplo n.º 11
0
 def test_op_d_norm(self):
     _ = Numlike().op_d_norm(Numlike(), (1, 1, 1, 1), 1, 1, 1, 1)
Exemplo n.º 12
0
 def test_getitem(self):
     _ = Numlike()[0]
Exemplo n.º 13
0
 def test_op_d_relu(self):
     _ = Numlike().op_d_relu(Numlike())
Exemplo n.º 14
0
 def test_op_conv(self):
     _ = Numlike().op_conv(Numlike(), (3, 3, 3), (3, 3, 3), Numlike(),
                           (1, 1), (2, 2), 1)
Exemplo n.º 15
0
 def test_reciprocal(self):
     _ = Numlike().reciprocal()
Exemplo n.º 16
0
 def test_setitem(self):
     Numlike()[0] = 0.0
Exemplo n.º 17
0
 def test_neg(self):
     _ = Numlike().neg()
Exemplo n.º 18
0
 def test_shape(self):
     _ = Numlike().shape()
Exemplo n.º 19
0
 def test_square(self):
     _ = Numlike().square()
Exemplo n.º 20
0
 def test_add(self):
     _ = Numlike() + Numlike()
Exemplo n.º 21
0
 def test_dot(self):
     w = np.array([[1, 2], [3, 4]])
     _ = Numlike().dot(w)
Exemplo n.º 22
0
 def test_sub(self):
     _ = Numlike() - 1.0
Exemplo n.º 23
0
 def test_amax(self):
     _ = Numlike().amax()
Exemplo n.º 24
0
 def test_mul(self):
     _ = Numlike() * 3.0
Exemplo n.º 25
0
 def test_flatten(self):
     _ = Numlike().flatten()
Exemplo n.º 26
0
 def test_div(self):
     _ = Numlike() / 5.0
Exemplo n.º 27
0
 def test_abs(self):
     _ = Numlike().abs()
Exemplo n.º 28
0
 def test_rdiv(self):
     _ = 5.0 / Numlike()
Exemplo n.º 29
0
 def test_from_shape1(self):
     _ = Numlike.from_shape((3, 4))
Exemplo n.º 30
0
 def test_op_softmax(self):
     _ = Numlike().op_softmax(5)