tensorflow中运行RNN调库实现提示功能
导包时import tensorflow按ctrl键进入底层源代码,在源代码中的第612-614行注释掉
from tensorflow.python.util.lazy_loader import LazyLoader # pylint: disable=g-import-not-at-top
contrib = LazyLoader(‘contrib’, globals(), ‘tensorflow.contrib’)
del LazyLoader
这三行注释掉,再添加两行代码
from tensorflow._api import *
from tensorflow import contrib
此时,写RNN代码就有提示了