Ejemplo n.º 1
0
 def test_is_maxpool2d_net_true(self, cnn, is_maxpool2d):
     assert is_maxpool2d(cnn.layers_.values()) is True
Ejemplo n.º 2
0
 def test_is_maxpool2d_layer(self, nn, cnn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_['input']) is False
     assert is_maxpool2d(cnn.layers_['pool2']) is True
     assert is_maxpool2d(cnn.layers_['conv1']) is False
Ejemplo n.º 3
0
 def test_is_maxpool2d_net_false(self, nn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_.values()) is False
Ejemplo n.º 4
0
 def test_is_maxpool2d_layer(self, nn, cnn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_['input']) is False
     assert is_maxpool2d(cnn.layers_['pool2']) is True
     assert is_maxpool2d(cnn.layers_['conv1']) is False
Ejemplo n.º 5
0
 def test_is_maxpool2d_net_true(self, cnn, is_maxpool2d):
     assert is_maxpool2d(cnn.layers_.values()) is True
Ejemplo n.º 6
0
 def test_is_maxpool2d_net_false(self, nn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_.values()) is False
Ejemplo n.º 7
0
 def test_is_maxpool2d_layer(self, nn, cnn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_["input"]) is False
     assert is_maxpool2d(cnn.layers_["pool2"]) is True
     assert is_maxpool2d(cnn.layers_["conv1"]) is False