stylegan2报错解决

#error "C++ versions less than C++11 are not supported."

I encountered the same error. A nasty workaround was to add flags --std=c++11 and -DNDEBUG to the nvcc call in dnnlib/tflib/custom_ops.py ln 64:

cmd = 'nvcc --std=c++11 -DNDEBUG ' + opts.strip()

https://mlog.club/article/2857895

 

“undefined symbol: _ZN10tensorflow12OpDefBuilder6OutputESs”

https://blog.csdn.net/zaf0516/article/details/103618601

打开custom_ops.py中127行--compiler-options '-fPIC -D_GLIBCXX_USE_CXX11_ABI=0,改为--compiler-options '-fPIC -D_GLIBCXX_USE_CXX11_ABI=1,即可如下图所示:

 

stylegan2报错解决

 

原文链接: https://www.cnblogs.com/rainsoul/p/12162779.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    stylegan2报错解决

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/191560

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月12日 下午5:45
下一篇 2023年2月12日 下午5:46

相关推荐