Skip to content

Commit 69a1e27

Browse files
author
Amit Patankar
authored
Merge pull request tensorflow#19788 from av8ramit/cherrypicks2
Cherrypicks2
2 parents b920ca1 + 2080782 commit 69a1e27

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

tensorflow/contrib/eager/python/datasets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ def remote_fn(h):
106106
target_device=target,
107107
buffer_size=10,
108108
container="",
109-
shared_name=_generate_shared_name("function_buffer_resource"))
109+
shared_name=_generate_shared_name(
110+
"contrib_eager_iterator_function_buffer_resource"))
110111
self._buffer_resource_deleter = resource_variable_ops.EagerResourceDeleter( # pylint: disable=line-too-long
111112
handle=self._buffer_resource_handle,
112113
handle_device=self._device)

tensorflow/contrib/opt/python/training/adamax_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@ def doTestBasic(self, use_resource=False):
224224
var1_np, m1, v1 = adamax_update_numpy(var1_np, grads1_np, t, m1, v1)
225225

226226
# Validate updated params
227-
self.assertAllCloseAccordingToType(var0_np, self.evaluate(var0))
228-
self.assertAllCloseAccordingToType(var1_np, self.evaluate(var1))
227+
self.assertAllCloseAccordingToType(var0_np, self.evaluate(var0),
228+
rtol=1e-2)
229+
self.assertAllCloseAccordingToType(var1_np, self.evaluate(var1),
230+
rtol=1e-2)
229231
if use_resource:
230232
self.assertEqual("var0_%d/AdaMax:0" % (i,),
231233
opt.get_slot(var=var0, name="m").name)

tensorflow/tools/ci_build/install/install_pip_packages.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ set -e
2121
easy_install -U pip==9.0.3
2222
easy_install3 -U pip==9.0.3
2323

24-
pip2 install --upgrade setuptools==39.1.0
25-
pip3 install --upgrade setuptools==39.1.0
26-
2724
# Install pip packages from whl files to avoid the time-consuming process of
2825
# building from source.
2926

@@ -112,3 +109,7 @@ pip2 install --upgrade gast
112109
pip3 install --upgrade gast
113110
pip2 install --upgrade termcolor
114111
pip3 install --upgrade termcolor
112+
113+
# Install last working version of setuptools.
114+
pip2 install --upgrade setuptools==39.1.0
115+
pip3 install --upgrade setuptools==39.1.0

tensorflow/tools/ci_build/install/install_python3.5_pip_packages.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ if [[ -z $pip35_version ]]; then
3939
fi
4040

4141
set -e
42-
pip3.5 install --upgrade setuptools==39.1.0
4342
pip3.5 install --upgrade pip
4443

4544
pip3.5 install --upgrade virtualenv
@@ -82,4 +81,7 @@ pip3.5 install --upgrade astor
8281
pip3.5 install --upgrade gast
8382
pip3.5 install --upgrade termcolor
8483

84+
# Install last working version of setuptools.
85+
pip3.5 install --upgrade setuptools==39.1.0
86+
8587
# LINT.ThenChange(//tensorflow/tools/ci_build/install/install_python3.6_pip_packages.sh)

tensorflow/tools/ci_build/install/install_python3.6_pip_packages.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ cd Python-3.6.1
4949
make altinstall
5050
ln -s /usr/local/bin/pip3.6 /usr/local/bin/pip3
5151

52-
pip3 install --upgrade setuptools==39.1.0
5352
pip3 install --upgrade pip
5453

5554
pip3 install --upgrade virtualenv
@@ -98,4 +97,7 @@ pip3 install --upgrade astor
9897
pip3 install --upgrade gast
9998
pip3 install --upgrade termcolor
10099

100+
# Install last working version of setuptools.
101+
pip3 install --upgrade setuptools==39.1.0
102+
101103
# LINT.ThenChange(//tensorflow/tools/ci_build/install/install_python3.5_pip_packages.sh)

0 commit comments

Comments
 (0)