Пример #1
0
 def test_is_maxpool2d_net_true(self, cnn, is_maxpool2d):
     assert is_maxpool2d(cnn.layers_.values()) is True
Пример #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
Пример #3
0
 def test_is_maxpool2d_net_false(self, nn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_.values()) is False
Пример #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
Пример #5
0
 def test_is_maxpool2d_net_true(self, cnn, is_maxpool2d):
     assert is_maxpool2d(cnn.layers_.values()) is True
Пример #6
0
 def test_is_maxpool2d_net_false(self, nn, is_maxpool2d):
     assert is_maxpool2d(nn.layers_.values()) is False
Пример #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