Skip to content

Commit 4865818

Browse files
lingvo-botcopybara-github
authored andcommitted
Update xla_sharding import path to new location
We are moved the TensorFlow APIs outside of XLA and will remove the old path soon. PiperOrigin-RevId: 477895846
1 parent 01ededf commit 4865818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lingvo/core/gshard_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from tensorflow.python.compiler.xla.experimental import xla_sharding
3131
except ImportError:
3232
# OSS backward compatibility, can be removed when TF is updated.
33-
from tensorflow.compiler.xla.experimental.xla_sharding import xla_sharding
33+
from tensorflow.compiler.xla.experimental.xla_sharding import xla_sharding # pytype: disable=import-error
3434
# pylint: enable=g-direct-tensorflow-import
3535

3636
ThreadLocalStack = thread_local_utils.ThreadLocalStack

0 commit comments

Comments
 (0)