Tensorflow 没有固定模块';层';在当前的Google Colab TF版本中
我使用Google colab(python3 GPU) 例如,我想运行,但在以下行中运行demo ipynb时出错:Tensorflow 没有固定模块';层';在当前的Google Colab TF版本中,tensorflow,google-colaboratory,Tensorflow,Google Colaboratory,我使用Google colab(python3 GPU) 例如,我想运行,但在以下行中运行demo ipynb时出错: import tensorflow as tf from layers import (_causal_linear, _output_linear, conv1d, dilated_conv1d) 当我运行这两行时,出现了一个错误“无模块层” 我不认为这是一个错误或什么,因为这个回购协议有超过1000颗星。 我认为这是一个tf版本的问题 有没有办法解决这个问题?“层”是包
import tensorflow as tf
from layers import (_causal_linear, _output_linear, conv1d, dilated_conv1d)
当我运行这两行时,出现了一个错误“无模块层”
我不认为这是一个错误或什么,因为这个回购协议有超过1000颗星。
我认为这是一个tf版本的问题
有没有办法解决这个问题?“层”是包中的一个模块,您在Tensorflow中没有链接。看
顺便说一句,如果您想从tensorflow的子模块导入,您必须从tensorflow.package import执行
导入…
该库需要什么版本的tensorflow?Colab始终使用最新稳定版本的TensorFlow(目前为1.12),因此该库可能需要更新以支持最新版本的TensorFlow。