Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
/meshPublic archive

Commitcccc00e

Browse files
chuanhaozhugeMesh TensorFlow Team
authored and
Mesh TensorFlow Team
committed
Make TPU variable name deterministic.
Only use the unique variable handle id as handle cache key, but not the variable handle's name.This resolves a graph non-determinism issue seen in an internal workload.PiperOrigin-RevId: 436262849
1 parent39f4bd6 commitcccc00e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎mesh_tensorflow/tpu_variables.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def handle(self):
8282
iftpu_contextisNone:
8383
returnself._primary_var.handle
8484

85-
returntpu_context.get_replicated_var_handle(self._name,self._vars)
85+
# Using variable name as handle id.
86+
returntpu_context.get_replicated_var_handle(self._name,self._name,
87+
self._vars)
8688

8789
@contextlib.contextmanager
8890
def_assign_dependencies(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp