From 261eba23a909a463afc3e0a5e4cb8283fd4883aa Mon Sep 17 00:00:00 2001 From: Mainak Dutta <35796546+Mainak431@users.noreply.github.com> Date: Tue, 30 Apr 2019 12:16:13 +0530 Subject: [PATCH] fixing tensorflow==2.0.0.a0 does not have any function extract_patches in tf.image. That will be extract_image_patches. I have installed the latest public version of tensorflow==2.0.0.a0. @seanpmorgan Please restore this. --- tensorflow_addons/image/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow_addons/image/filters.py b/tensorflow_addons/image/filters.py index 7108119a1f..2017dd1f35 100644 --- a/tensorflow_addons/image/filters.py +++ b/tensorflow_addons/image/filters.py @@ -91,7 +91,7 @@ def func2(): for a in range(ch): img = image[:, :, a:a + 1] img = tf.reshape(img, [1, row, col, 1]) - slic = tf.image.extract_patches( + slic = tf.image.extract_image_patches( img, [1, filter_shapex, filter_shapey, 1], [1, 1, 1, 1], [1, 1, 1, 1], padding='SAME')