Commit 1744b8c0 authored by Yong Tang's avatar Yong Tang Committed by Rasmus Munk Larsen
Browse files

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: default avatarYong Tang <yong.tang.github@outlook.com>
parent 4fb12526
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment