4e6f863acd500dc02e7c2a8e5a01566ac58930d9,sonnet/python/modules/conv_test.py,,,#,4324

Before Change


    with self.assertRaisesRegexp(snt.NotConnectedError, err):
      self.assertEqual(conv3_transpose.output_shape, conv3.input_shape)

if __name__ == "__main__":
  tf.test.main()

After Change



// These functions compute the expected output shape of a convolution of each
// padding type, for a given input shape and kernel size.
_PADDINGS_EXPECTED_SHAPE_TRANSFORMS = {
    snt.SAME: lambda in_length, kernel_size: in_length,
    snt.VALID: lambda in_length, kernel_size: in_length - kernel_size + 1,
    snt.FULL: lambda in_length, kernel_size: in_length + kernel_size - 1,
    snt.CAUSAL: lambda in_length, kernel_size: in_length,
    snt.REVERSE_CAUSAL: lambda in_length, kernel_size: in_length,
}


class Conv2DTest(parameterized.TestCase, tf.test.TestCase):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: deepmind/sonnet
Commit Name: 4e6f863acd500dc02e7c2a8e5a01566ac58930d9
Time: 2018-11-20
Author: noreply@google.com
File Name: sonnet/python/modules/conv_test.py
Class Name:
Method Name:


Project Name: dmlc/gluon-nlp
Commit Name: e78a24eeb124ff9efb99b1aee7ab1ee9181c9e0f
Time: 2020-07-17
Author: szha@users.noreply.github.com
File Name: tools/batch/submit-job.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: 200e3be0929599459ee5d1100b3076b9188ecf25
Time: 2017-10-26
Author: wenqi.li@ucl.ac.uk
File Name: tests/resampler_grid_warper_test.py
Class Name:
Method Name: