b49758be2bc75c281ce937ffa40fb13228dc38d5,dlpy/tests/test_network.py,TestNetwork,test_outputs,#TestNetwork#,89

Before Change


            self.fail("ExpectedException not raised")

    def test_outputs(self):
        try:
            input1 = InputLayer(n_channels = 1, width = 28, height = 28)
            conv1 = Conv2d(2)(input1)
            model1 = Model(conn = self.s, inputs = [input1], outputs = [conv1])
            model1.compile()
        except DLPyError:
            pass
        except Exception as e:
            self.fail("Unexpected exception raised:", e)
        else:
            self.fail("ExpectedException not raised")

        try:
            input1 = InputLayer(n_channels = 1, width = 28, height = 28)
            conv1 = Conv2d(2)(input1)
            conv2 = BN()(input1)

After Change


            model1 = Model(conn = self.s, inputs = [input1], outputs = [conv1])
            model1.compile()

        with self.assertRaises(DLPyError):
            input1 = InputLayer(n_channels = 1, width = 28, height = 28)
            conv1 = Conv2d(2)(input1)
            conv2 = BN()(input1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: sassoftware/python-dlpy
Commit Name: b49758be2bc75c281ce937ffa40fb13228dc38d5
Time: 2019-01-09
Author: 34170572+wenyushi@users.noreply.github.com
File Name: dlpy/tests/test_network.py
Class Name: TestNetwork
Method Name: test_outputs


Project Name: sassoftware/python-dlpy
Commit Name: b49758be2bc75c281ce937ffa40fb13228dc38d5
Time: 2019-01-09
Author: 34170572+wenyushi@users.noreply.github.com
File Name: dlpy/tests/test_network.py
Class Name: TestNetwork
Method Name: test_inputs


Project Name: eth-cscs/reframe
Commit Name: 1836156fd8b116dd140e018c1653563b1d4925fb
Time: 2021-02-23
Author: karakasis@cscs.ch
File Name: unittests/test_fields.py
Class Name:
Method Name: test_deprecated_field