- 博客(14)
- 收藏
- 关注
原创 动态规划思路
5.(出现问题)打印dp数组。(打印dp数组,检查是否有问题,检验1 2 3 4 步骤)4.1.1 排列:背包在外 物品在内。4.1.2 组合:物品在外,背包在内。4.遍历顺序,比较考究,01 先遍历背包,后遍历物品。4.1排列和组合的遍历顺序是不相同的。3.dp数组如何初始化,初始化也需要注意。1.dp数组的定义和下标。
2023-08-18 13:38:02
108
1
原创 python ArgParser bool类型参数传入False不生效,(无论传入的是Ture还是False)程序运行时结果都是True
而是需要使用action='store_true'或action='store_false'ArgParser()传bool类型的参数不能直接。
2023-08-12 14:11:48
494
1
原创 import trochvision报错Process finished with exit code 139
是torch和torchvision版本不匹配的问题,对照表格安装对应版本即可。
2023-08-04 15:46:32
99
1
原创 pycharm 报错 Process finished with exit code 139
甚至进不去main,直接报错Process finished with exit code 139。这个东西在dataset.music.MUSICMixDataset。给import打断点检查Import,看是不是哪个文件不存在。显然dataset里没有这个东西。
2023-08-04 14:24:54
307
1
原创 IEEE PDF express
报错Errors: Font Arial-BoldMT, ArialMT is not embedded (166x on pages 1,3,7)解决:使用pdf creator再重新生成一遍pdf即可。直接由overleaf latex生成的pdf。frot embedding错误。
2023-04-15 22:49:36
451
原创 修改mobaxterm终端字体大小
左边sessions>>右键需要连接的session>>edit session>>SSH选项卡>>下方Terminal settings>>Terminal font settings>>设置大小。
2022-11-06 19:36:02
1878
原创 pytorch CrossEntropyLoss报错RuntimeError: 1D target tensor expected, multi-target not supported
1. 不是one-hot,是具体哪一类 eg:labels=[3,6,12,5,8]2. label的维度是1,不能是多纬 eg:labels=32*10 ×。
2022-10-11 15:11:28
608
原创 训练网络时报错cuda() missing 1 required positional argument: ‘self‘
模型.cuda时初始化错误。
2022-10-11 15:07:00
650
原创 [jupyter notebook] 运行 main()报错An exception has occurred, use %tb to see the full traceback
[jupyter notebook] 运行 main()报错An exception has occurred, use %tb to see the full traceback
2022-10-07 00:29:40
375
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人