Skip to content

Commit 79f9e0a

Browse files
mathemakittenHelen Ngo
andauthored
soz (#42)
Co-authored-by: Helen Ngo <helen@cohere.ai>
1 parent e46dc85 commit 79f9e0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cloud/envs/gcp.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ def __init__(self, instance):
227227
import tensorflow as tf
228228
import re
229229
m = re.search(r'(\d+\.\d+)\.\d+', tf.__version__)
230-
self.tf_version = m.group()
230+
self.core_tf_version = m.group(1)
231+
if float(self.core_tf_version) <= 2.3:
232+
self.tf_version = m.group(1)
233+
else:
234+
self.tf_version = m.group()
231235
if "dev" in tf.__version__:
232236
logging.info("Found Tensorflow nightly version. Using TPU software version: nightly")
233237
self.tf_version = "nightly"

0 commit comments

Comments
 (0)