- 博客(6)
- 收藏
- 关注
转载 sublime3配置黑科技
本人主要使用sublime作为IDE进行coding。在这给sublime打个call。请支持正版。 http://www.sublimetext.com/ 本文章记录一些个人在使用sublime时想添加的一些功能,不定时更新,以转载为主,不涉及任何商业利益,如有侵权请联系我删除。 sublime3 python 如何添加头部自动注释 转载自:http://www.mamicode.com/info-detail-2156852.html ...
2020-12-12 17:03:58
189
原创 ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memo
今天在Docker中运行Pytorch程序是出现了这个错误: ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memory (shm). 问题原因: Please note that PyTorch uses shared memory to sh...
2019-09-23 16:10:18
16993
3
翻译 生物智能和人工智能
原文链接:https://hai.stanford.edu/news/the_intertwined_quest_for_understanding_biological_intelligence_and_creating_artificial_intelligence/ 因其他笔记无法使用,故存为博客。 读书笔记: 1:unlock the mystery of the three ...
2018-12-11 11:39:48
2013
1
原创 关于随机数 遇到的一些问题和解决办法
我在用Cocos2d-x的引擎开发游戏。(当然我是一个菜鸟 刚大三) 问题一:虽然我运用了随机数,随机出现1~5之间的一个数,但是我发现,我无论怎么调试我的程序,它还是和第一次随机出现的数字一样,也就是不具有随机性。 在网上一插 才发现原来计算机是伪随机数。这些百度 第一个 就有介绍,我就不赘述了 直接上解决办法 : 随机数种子 //初始化随机种子 struc...
2014-11-12 20:22:37
814
转载 c++基础知识
1. 传指针时,我们可以通过指针来修改它在外部所指向的内容。但如果要修改外部指针所指向的对象是不可能的。例如传递外部指针到函数内来分配空间,必须传递指针的指针或指针的引用。 2. char carry[10] = {0}; 编译器会将其后所有的东西都置0; 3. 函数返回值为const时,返回的东西付给一个类型相同的标示后其不能为左值; 4. const int *i
2014-11-02 11:54:02
298
转载 C++ int,char,string,CString类型转换
#include <string> //使用C++标准库的string类时 using namespace std; //同上 #include <sstream> #include <iostream> #include <stdlib.h> //要将string类和int类型直接转换最好有这些包含, //因为自己写一个转换函数比较方便...
2014-11-02 11:46:48
378
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅