- 博客(3)
- 收藏
- 关注
原创 嵌入式学习记录(二) debug遇到的小问题
软件 keil v5直接使用keil v5新建项目时出现的一些问题`在项目中进行debug时遇到Error: Could not load file’xxx’的问题,及其相应的解决办法及在后续出现的Not enough information to list image symbols问题最后重新编译,Not enough information to list image symbols 问题和 Error: Could not load file’xxx’ 问题...
2022-06-14 22:31:16
4652
原创 loss.data[0] 报错invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()`
刚开始学pytorch源码for e in range(1000): out = logistic_regression(Variable(x)) loss = criterion(out, Variable(y)) optimizer.zero_grad() loss.backward() optimizer.step() if (e + 1) % 20 == 0: print('epoch: {}, loss: {}'.format(e + 1, loss.dat
2021-01-21 17:34:36
1366
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人