Fix warning in python 3 with deprecated inspect.getargspec (#19199)
authorYong Tang <yong.tang.github@outlook.com>
Thu, 10 May 2018 16:07:44 +0000 (09:07 -0700)
committerRasmus Munk Larsen <rmlarsen@google.com>
Thu, 10 May 2018 16:07:44 +0000 (09:07 -0700)
commit1744b8c0519cec31764d205b813bd4fd6028cbf9
tree19b3f5fd3215f53b124a67b975324982ef11b14b
parent4fb125264c5394c9e4295ed437adb1d9711bd456
Fix warning in python 3 with deprecated inspect.getargspec (#19199)

This fix tries to address the issue raised in 16152 where
a warning will show up in python 3 with:
```
import tensorflow as tf

import warnings
warnings.filterwarnings('error')

tf.reduce_sum(tf.placeholder(tf.float64))
......
DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
```

This fixes the issue with getfullargspec in tf_export, which takes
into consideration the python 2 vs python3.

This fix fixes 16152.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
tensorflow/python/util/tf_inspect.py