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

Commit ad72355

Browse files
fionalangtensorflower-gardener
authored andcommitted
Change references to migrated variable_scope functions.
PiperOrigin-RevId: 528182254
1 parent 4dc28ce commit ad72355

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tensorflow_estimator/python/estimator/tpu/tpu_estimator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from tensorflow.python.framework import ops
4444
from tensorflow.python.ops import control_flow_ops
4545
from tensorflow.python.ops import control_flow_util
46+
from tensorflow.python.ops import ref_variable
4647
from tensorflow.python.ops import summary_ops_v2
4748
from tensorflow.python.ops import variable_scope
4849
from tensorflow.python.platform import tf_logging as logging
@@ -115,8 +116,8 @@
115116
ops.register_proto_function(
116117
'{}_{}'.format(_TPU_ESTIMATOR, _ITERATIONS_PER_LOOP_VAR),
117118
proto_type=variable_pb2.VariableDef,
118-
to_proto=variable_scope._to_proto_fn, # pylint: disable=protected-access
119-
from_proto=variable_scope._from_proto_fn) # pylint: disable=protected-access
119+
to_proto=ref_variable._to_proto_fn, # pylint: disable=protected-access
120+
from_proto=ref_variable._from_proto_fn) # pylint: disable=protected-access
120121

121122

122123
def _is_iterable(obj):

0 commit comments

Comments
 (0)