![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
Gruuu
这个作者很懒,什么都没留下…
展开
-
配置springmvc-servlet.xml
配置springmvc-servlet.xml原创 2022-07-06 17:16:37 · 190 阅读 · 0 评论 -
变形金刚实验调试
ValueError_, term_width = os.popen('stty size', 'r').read().split()ValueError: not enough values to unpack (expected 2, got 0)resolution _, term_width = os.popen('stty size', 'r').read().split()term_width = int(term_width)windows下运行需要注释掉上面两行并添加下面一行原创 2021-10-27 12:49:42 · 485 阅读 · 0 评论 -
RuntimeError: CUDA error: out of memory
RuntimeError: CUDA out of memory. Tried to allocate 78.00 MiB (GPU 0; 2.00 GiB total capacity; 1.07 GiB already allocated; 10.30 MiB free; 1.19 GiB reserved in total by PyTorch)一般都是batch_size的问题,注意如果修改的是batch_size的default,但是调用时候,batch_size值自己又重新传参了,还是会有问题原创 2021-10-26 16:34:19 · 879 阅读 · 0 评论 -
linux下vscode配置C/C++环境的.json文件
linux下vscode配置C/C++环境的.json文件launch.json{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "versio原创 2021-04-21 23:49:53 · 2688 阅读 · 0 评论 -
golang 随笔
mapVariables6 := make([]map[string]interface{},2)//切片必须定义长度(容量),增加元素自动扩充容量必须用append()//map就是通过hash索引散列存储到不同数据块,可以随便加键值对,不用考虑容量;用make是要保证map不为nil,没有必要定义长度和容量mapVariables6[0] = make(map[string]interface{}) mapVariables6[0]["name"] = "波哥"mapVariables6[0]原创 2021-02-18 23:43:57 · 66 阅读 · 0 评论 -
【已解决】anaconda中使用conda安装pytorch的问题
一、安装途径推荐安装和验证的方法就不讲的,其他博客写的很详细。主要说一下安装过程遇到的问题:有条件的建议推荐还是搭个梯子,用官方源速度也很快(原因后面说)1.安装gpu版时先看好NVIDIA驱动的版本:桌面鼠标右键NVIDIA控制面板→左下角系统信息→组件根据CUDA版本在这里找对应的pytorch、torchvision版本:https://download.pytorch.org/whl/torch_stable.html然后wins或linux在anaconda prompt下使用命原创 2020-11-20 01:38:01 · 732 阅读 · 0 评论 -
IDE随笔
pythonanaconda的第三方包保存目录:该环境目录/Lib/site-packages原创 2020-11-18 08:25:49 · 153 阅读 · 0 评论 -
MIT6.824 MapReduce实现 golang代码(详细注释)
这里写目录标题wccommon_mapcommon_reduceschedulewcpackage mainimport ( "fmt" "os" "src/mapreduce" "strconv" "strings")// The mapping function is called once for each piece of the input.// In this framework, the key is the name of the file that is bein原创 2020-12-02 18:57:12 · 400 阅读 · 1 评论 -
COS 418/MIT6.824 MapReduce
关于map reducea.是一种编程框架,将任务分解成多份,交给不同的机器执行b.MapReduce将任务分为两部分来执行[map阶段]:处理原始任务,产生包含"中间结果"的键值对的中间文件[reduce阶段]:处理中间文件,产生包含最后结果的文件*需要注意的是,这里的map和reduce是用户自定义函数。c.框架共包含一个master和多个worker master负责给每一个worker分配任务,也负责管理每一个任务的状态。worker负责执行具体的任务,包括map和reduce。.原创 2020-11-04 19:15:34 · 314 阅读 · 1 评论 -
一些链接
破解goland Version: 2020.2.2:https://www.cnblogs.com/double12gzh/p/13680180.html#_label1_0原创 2020-09-26 07:40:48 · 79 阅读 · 0 评论