Skip to content

Commit

Permalink
Add TensorFlow version to TPU_ML_PLATFORM_VERSION environment varia…
Browse files Browse the repository at this point in the history
…bles.

This will allow us to track the version of TensorFlow that is being used to run on Cloud TPU.

PiperOrigin-RevId: 636219692
  • Loading branch information
tensorflower-gardener committed May 22, 2024
1 parent e5592ac commit 62d7c31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorflow/python/tpu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
"""Ops related to Tensor Processing Units."""

import os
from tensorflow.python.framework import versions

os.environ['TPU_ML_PLATFORM'] = 'Tensorflow'
os.environ['TPU_ML_PLATFORM_VERSION'] = versions.__version__

0 comments on commit 62d7c31

Please sign in to comment.