python 深度学习代码错误集合

  1. module ‘pandas’ has no attribute ‘computation’
    更新一下dask conda update dask

  2. too many values to unpack
    函数方法的返回值个数与接收变量不匹配

  3. syntaxerror:positional argument follows keyword argument
    指定参数应位于参数列表的最右侧

  4. IndentationError:unindet does not match any outer indentation
    缩进出现问题。notepad++视图、显示所有字符,仔细检查

  5. UnboundLocalError: local variable ‘l’ referenced before assignment
    如果在内部函数中修改全局变量,python会认为该变量为局部变量

  6. tensorflow.python.framework.errors_impl.Int
    分析:出现这个错误一般是GPU内存耗尽。

—-未完待续—-

发布了164 篇原创文章 · 获赞 69 · 访问量 18万+

猜你喜欢

转载自blog.csdn.net/wqy20140101/article/details/82186241