![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法工程师笔记
FulChou
SYSUer
展开
-
Gym on Mac OS X Big Sur Error occurred while running `from pyglet.gl import *`
gym 在 mac os上面 运行报错 报错内容: Error occurred while running `from pyglet.gl import *` HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install python-opengl'. If you're running on a server, you may need a virtual frame buffer; something原创 2021-06-14 22:23:07 · 483 阅读 · 0 评论 -
Pytorch: RuntimeError: expected Double tensor (got Float tensor)
对于错误 RuntimeError: expected Double tensor (got Float tensor) 经过实验验证: 这句话有误导, 应该理解成,我希望得到一个float tensor ,但是你给了我一个Double tensor 解决办法: 将模型改成double类型,或者把输入改成 float类型 A fix would be to call .double() on your model (or .float() on the input) 参考链接: https://discu原创 2021-04-15 17:18:06 · 489 阅读 · 0 评论 -
Pytorch 实践中学习笔记:
Pytoch 学习 对于pytorch,tensorflow 这类计算工具,我认为,花大量的时间看文档、时间去学习的效率是十分低效的: 很多知识看过之后不去使用,基本上都会忘记 另外在实践中学习,能够让知识学习地更加牢固,也更加高效 permute(dims) :将tensor的维度换位。 参数:参数是一系列的整数,代表原来张量的维度。比如三维就有0,1,2这些dimension。 例: import torch import numpy as np a=np.array([[[1,2,3],[4,原创 2021-04-13 16:47:08 · 66 阅读 · 0 评论 -
CNN 学习总结笔记:
自己在学习的过程中,处理图片的时候总是无法避免需要使用CNN来对图片进行处理,但是从大三学过CNN之后,总是在要使用的时候将最基础的知识给忘记了。 为了避免自己下一次忘记,或者说帮助自己下一次快速地想起此基础知识。写下这个博客 CNN: 解释: 对于一个 图片分为( c,w,h) 通道数(一般3,rgb),宽,高的图片。 输入(c, w, h) 经过一个 卷积操作 nn.Conv2d() torch.nn.Conv2d(in_channels, out_channels, kernel_size, st原创 2021-04-13 15:58:04 · 121 阅读 · 0 评论