We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57fb90f + 09a76b8 commit 2b66611Copy full SHA for 2b66611
tests/test_tensorflow_addons.py
@@ -11,4 +11,12 @@ def test_tfa_image(self):
11
img = tf.image.convert_image_dtype(img, tf.float32)
12
mean = tfa.image.mean_filter2d(img, filter_shape=1)
13
14
- self.assertEqual(1, len(mean))
+ self.assertEqual(1, len(mean))
15
+
16
+ # This test exercises TFA Custom Op. See: b/145555176
17
+ def test_gelu(self):
18
+ x = tf.constant([[0.5, 1.2, -0.3]])
19
+ layer = tfa.layers.GELU()
20
+ result = layer(x)
21
22
+ self.assertEqual((1, 3), result.shape)
0 commit comments