Commit 20957e39 authored by Yong Tang's avatar Yong Tang
Browse files

Replace deprecated test_session with cached_session



While running tests:
```
bazel test -s --verbose_failures --config=opt //tensorflow/python:image_ops_test
```

there are many deprected warnings:
```
From /usr/lib/python2.7/contextlib.py:84: test_session (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.
Instructions for updating:
Use `self.session()` or `self.cached_session()` instead.
```

This fix replace deprecated test_session with cached_session.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 9b91ea70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment