python错误
快乐你懂的smile~
这个作者很懒,什么都没留下…
展开
-
释放GPU显存
这个命令会杀死所有的进程。(即使把*改为对应卡号,也不会只杀死对应卡下的进程)将*换为对应的卡号,可以显示对应卡下正在运行的进程。原创 2024-03-11 14:08:05 · 494 阅读 · 0 评论 -
解决已经指定了device=7,但仍在0号卡运行的情况
解决程序不在指定卡运行的情况原创 2024-03-07 16:58:10 · 389 阅读 · 0 评论 -
解决AttributeError: module ‘numpy‘ has no attribute ‘bool‘.错误
官方解释:`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.原创 2024-02-19 14:45:14 · 1871 阅读 · 0 评论 -
colab与pycharm导入包的不同
如果在pycharm下,按照colab的写法是不对的,但我也没搞懂为什么,先写个笔记提醒自己吧!在colab下,同样的目录下,得这样写。原创 2023-10-29 13:39:07 · 121 阅读 · 1 评论 -
导入自定义包
对于这样的目录结构,导入包的代码见图。原创 2023-10-23 21:25:57 · 24 阅读 · 0 评论