| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,4 +11,12 @@ def test_tfa_image(self): | |||
| 11 | 11 | img = tf.image.convert_image_dtype(img, tf.float32) | |
| 12 | 12 | mean = tfa.image.mean_filter2d(img, filter_shape=1) | |
| 13 | 13 | ||
| 14 | - self.assertEqual(1, len(mean)) | ||
| 14 | + 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) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments