Exemple #1
0
 def test_is_maxpool2d_net_true(self, cnn, is_maxpool2d):
     assert is_maxpool2d(cnn.layers_.values()) is True
Exemple #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
Exemple #3
0
 def test_is_maxpool2d_net_false(self, nn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_.values()) is False
 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
 def test_is_maxpool2d_net_true(self, cnn, is_maxpool2d):
     assert is_maxpool2d(cnn.layers_.values()) is True
 def test_is_maxpool2d_net_false(self, nn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_.values()) is False
Exemple #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