Skip to content

Commit

Permalink
soz (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Helen Ngo <[email protected]>
  • Loading branch information
mathemakitten and Helen Ngo authored Apr 12, 2021
1 parent e46dc85 commit 79f9e0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloud/envs/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ def __init__(self, instance):
import tensorflow as tf
import re
m = re.search(r'(\d+\.\d+)\.\d+', tf.__version__)
self.tf_version = m.group()
self.core_tf_version = m.group(1)
if float(self.core_tf_version) <= 2.3:
self.tf_version = m.group(1)
else:
self.tf_version = m.group()
if "dev" in tf.__version__:
logging.info("Found Tensorflow nightly version. Using TPU software version: nightly")
self.tf_version = "nightly"
Expand Down

0 comments on commit 79f9e0a

Please sign in to comment.