From 0e634188b335bf90c154dc1488d5b292ddddb0d0 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 15 Jun 2020 14:16:30 -0700 Subject: [PATCH] fix kokoro build :deprecated message. PiperOrigin-RevId: 316542716 Change-Id: I62ad7d88c36cd5f8551dea8efa8193c6ac8691ec --- tensorflow/python/training/tracking/data_structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/training/tracking/data_structures.py b/tensorflow/python/training/tracking/data_structures.py index 8dc252efbf9..a7d9b70a560 100644 --- a/tensorflow/python/training/tracking/data_structures.py +++ b/tensorflow/python/training/tracking/data_structures.py @@ -736,7 +736,7 @@ class _DictWrapper(TrackableDataStructure, wrapt.ObjectProxy): if wrapped_dict is None: # Allow zero-argument construction, e.g. from session.run's re-wrapping. wrapped_dict = {} - if not isinstance(wrapped_dict, collections.Mapping): + if not isinstance(wrapped_dict, collections_abc.Mapping): # Allow construction from a sequence, e.g. from nest.pack_sequence_as. wrapped_dict = dict(wrapped_dict) wrapt.ObjectProxy.__init__(self, wrapped_dict)