上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 178 下一页
  2020年10月21日
摘要: https://www.cnblogs.com/whwywzhj/p/6111618.html 通过列表生成式,我们可以直接创建一个列表。但是,受到内存限制,列表容量肯定是有限的。而且,创建一个包含100万个元素的列表,不仅占用很大的存储空间,如果我们仅仅需要访问前面几个元素,那后面绝大多数元素占用 阅读全文
posted @ 2020-10-21 22:20 一杯明月 阅读(111) 评论(0) 推荐(0)
摘要: >>>np.random.choice(5)#从[0, 5)中输出一个随机数 #相当于np.random.randint(0, 5) 2 >>>np.random.choice(5, 3)#在[0, 5)内输出3个随机数字并组成一维数组(ndarray) #相当于np.random.randint( 阅读全文
posted @ 2020-10-21 16:54 一杯明月 阅读(2434) 评论(0) 推荐(0)
摘要: lspci | grep -i nvidia 阅读全文
posted @ 2020-10-21 09:54 一杯明月 阅读(3782) 评论(0) 推荐(0)
  2020年10月20日
摘要: 问题描述: 使用pip安装模块时报错: ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way 阅读全文
posted @ 2020-10-20 21:45 一杯明月 阅读(2346) 评论(0) 推荐(0)
摘要: https://tensorflow.google.cn/install/source#linux tensorflow各个版本 参考文章 1.x各版本下载地址 https://pypi.tuna.tsinghua.edu.cn/simple/tensorflow/ tensorflow各个版本的C 阅读全文
posted @ 2020-10-20 21:42 一杯明月 阅读(8499) 评论(0) 推荐(1)
摘要: 转载请注明出处: http://www.cnblogs.com/darkknightzh/p/8576825.html 如果使用多gpu运行程序,可以直接使用CUDA_VISIBLE_DEVICES=0,1,2,3 python xxx.py来设置该程序可见的gpu。当然也可以在程序开头设置os.e 阅读全文
posted @ 2020-10-20 18:21 一杯明月 阅读(5055) 评论(0) 推荐(0)
摘要: # env_name是需要创建的环境名称,list_of_packages是在新环境中需要安装的工具包,有多个时用空格隔开 conda -create -n env_name list_of_packages # 创建一个名为的环境,指定Python版本是3.5(conda会自动寻找3.5.x中的最 阅读全文
posted @ 2020-10-20 17:41 一杯明月 阅读(189) 评论(0) 推荐(0)
摘要: sudo gedit ~/.condarc #2021/4/11 zhushidiao proxy_servers: #http: http://127.0.0.1:8889/ #https: https://127.0.0.1:8889/ 阅读全文
posted @ 2020-10-20 16:48 一杯明月 阅读(4233) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_41621362/article/details/96021715 阅读全文
posted @ 2020-10-20 16:17 一杯明月 阅读(1238) 评论(0) 推荐(0)
摘要: anaconda是十分方便的python全家桶,除此之外,anaconda还可以创建出python虚拟环境。可以说是十分强大了。 之前,我整理了一篇关于pip创建虚拟环境的博文:《pip建立虚拟环境》 当然,学会pip建立虚拟环境和conda建立虚拟环境的效果都是一样。所以掌握其一就行了,或者根据实 阅读全文
posted @ 2020-10-20 15:49 一杯明月 阅读(2527) 评论(1) 推荐(0)
上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 178 下一页