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.
1 parent 57fb90f commit 828d03dCopy full SHA for 828d03d
tests/test_tensorflow_addons.py
@@ -1,5 +1,6 @@
1
import unittest
2
3
+import numpy as np
4
import tensorflow as tf
5
import tensorflow_addons as tfa
6
@@ -11,4 +12,12 @@ def test_tfa_image(self):
11
12
img = tf.image.convert_image_dtype(img, tf.float32)
13
mean = tfa.image.mean_filter2d(img, filter_shape=1)
14
- self.assertEqual(1, len(mean))
15
+ self.assertEqual(1, len(mean))
16
+
17
+ # This test exercises TFA Custom Op. See: b/145555176
18
+ def test_gelu(self):
19
+ x = tf.constant([[0.5, 1.2, -0.3]])
20
+ layer = tfa.layers.GELU()
21
+ result = layer(x)
22
23
+ self.assertEqual((1, 3), result.shape)
0 commit comments