text icon indicating copy to clipboard operation
text copied to clipboard

Bug fix - Non TPU env

Open suvigyajain0101 opened this issue 2 years ago • 1 comments

If TPU acceleration is not available, os.environ['COLAB_TPU_ADDR'] fails (keyError). Fixed it to os.environ.get('COLAB_TPU_ADDR'), which returns NoneType and then continue to look for GPU or raise ValueError

suvigyajain0101 avatar Jul 12 '22 21:07 suvigyajain0101

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB