2020-12-22 23:28:46.449404: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2020-12-22 23:28:46.449872: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "C:/Users/wangyifan0122/stylegan-master/pretrained_example001.py", line 15, in <module>
import dnnlib.tflib as tflib
File "C:\Users\wangyifan0122\stylegan-master\dnnlib\tflib\__init__.py", line 8, in <module>
from . import autosummary
File "C:\Users\wangyifan0122\stylegan-master\dnnlib\tflib\autosummary.py", line 31, in <module>
from . import tfutil
File "C:\Users\wangyifan0122\stylegan-master\dnnlib\tflib\tfutil.py", line 34, in <module>
def shape_to_list(shape: Iterable[tf.Dimension]) -> List[Union[int, None]]:
AttributeError: module 'tensorflow' has no attribute 'Dimension'
'tensorflow' has no attribute 'Dimension'
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
Chan_pikxxx 2020-12-25 17:31关注是不是tensorflow和keras的版本不对应啊,还是说你用的tensorflow的版本没有“Dimension”
解决评论 打赏 举报无用 1