Issue with file reading when using TPU enabled colab machine #64117
Labels
comp:tpus
tpu, tpuestimator
stat:awaiting response
Status - Awaiting response from author
TF 2.15
For issues related to 2.15.x
type:bug
Bug
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.15.0
Custom code
Yes
OS platform and distribution
Google Colab
Mobile device
No response
Python version
Python 3.10.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I'm encountering an UnimplementedError related to the file system scheme '[local]' not being implemented when attempting to read files from the local filesystem in a Google Colab environment while using TPUs. The error occurs when trying to execute tf.io.read_file(file_path) within a data generator class, even when explicitly setting tf.device('/cpu:0') around the file reading operation.
This issue arises despite attempts to ensure file operations are directed to execute on the CPU within a TPU environment. The expected behavior is for TensorFlow to successfully read the local file when specified to do so on the CPU, even in a TPU context, without encountering a file system scheme error.
Full repository: https://github.com/arnava13/SeniorHonoursProject
(Training run in training_colab.ipynb on a colab machine)
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: