Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tf.io.gfile.rename not working for directories in S3 #1816

Open
j99ca opened this issue Jul 24, 2023 · 0 comments
Open

tf.io.gfile.rename not working for directories in S3 #1816

j99ca opened this issue Jul 24, 2023 · 0 comments

Comments

@j99ca
Copy link

j99ca commented Jul 24, 2023

The following code used to work in Tensorflow < 2.6. Upon Tensorflow 2.6, we had to import tensorflow_io. However, the tf.io.gfile.rename function which used to work on directories in S3 no longer works. I would like to update to a newer version of Tensorflow but this issue is preventing our organization from doing so, as some libraries we use use tf.io.gfile.rename to change folder names during training.

Code to replicate the issue:

import tensorflow as tf
import tensorflow_io as tfio

SOURCE_DIR = 's3://.../old_name/'
DEST_DIR = 's3://.../new_name/'

tf.io.gfile.rename(SOURCE_DIR, DEST_DIR)

I created an issue on the Tensorflow github repo but I haven't gotten any responses in a couple of months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant