Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit 6009125

Browse files
guptapriyaCopybara-Service
authored andcommitted
Distribution Strategy: Enable eager mode in Keras with MirroredStrategy (Part 1). Will update tests in follow ups.
PiperOrigin-RevId: 223440045
1 parent 982bcb1 commit 6009125

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mesh_tensorflow/tpu_variables.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ def assign_sub(self, delta, use_locking=None, name=None, read_value=True):
172172
def get(self):
173173
return self._primary_var
174174

175+
@property
176+
def _in_graph_mode(self):
177+
return self._primary_var._in_graph_mode # pylint: disable=protected-access
178+
175179
def _should_act_as_resource_variable(self):
176180
"""Pass resource_variable_ops.is_resource_variable check."""
177181
pass

0 commit comments

Comments
 (0)