我正在设置一个图形机器学习应用程序使用Ocatvian图形ML工具集。在这种情况下,我试图设置最短路径库。在Tesnforflow后端出现错误时,它失败了。
AttributeError: module 'tensorflow_core._api.v2.nn' has no attribute 'rnn_cell'`请在下面找到详细的错误日志:
文件"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py",第193行,在_run_module_as_main "main“中,mod_spec)文件"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py",第85行,在_run_code exec(代码,run_globals)文件"/Users/gokulalex/Apps/graphml_apps/shortest-path/macgraph/predict.py",第12行中,在“从"/Users/gokulalex/Apps/graphml_apps/shortest-path/macgraph/estimator.py",导入get_estimator文件”第4行中,在“从.model导入model_fn文件”第6行中,在“从.cell导入execute_reasoning文件”第2行中,在“从"/Users/gokulalex/Apps/graphml_apps/shortest-path/macgraph/cell/decode.py",导入execute_reasoning文件”第4行中,在“从.mac_cell导入”*“文件”第14行中,在MAC_RNNCell(tf.nn.rnn_cell.RNNCell)类中:
发布于 2019-11-26 11:41:47
根据对Github中的Tensorflow库和其他在线论坛的调查,可以理解python环境正在寻找Tensorflow 2.0版本。然而屋大维AI最短路径包似乎是在Tensorflow 1.0上。这似乎是在训练模型时出现此构建错误的原因。
请从Tensorflow Github仓库找到相关的线程。
https://stackoverflow.com/questions/59050019
复制相似问题