
Python
NKUABC
要做一个有情怀的码农
展开
-
PyTorch 0.4新版本 升级指南 no_grad
https://blog.youkuaiyun.com/jacke121/article/details/80597759转载 2019-05-15 21:44:28 · 328 阅读 · 0 评论 -
【pytorch】RuntimeError: cublas runtime error 或者 RuntimeError: cublas runtime error
加上一句:if torch.cuda:torch.cuda.set_device(device)原创 2019-05-15 20:50:40 · 6082 阅读 · 2 评论 -
visual studio 2013 产品许可证
BWG7X-J98B3-W34RT-33B3R-JVYW9原创 2019-05-20 22:35:34 · 3623 阅读 · 0 评论 -
剑指offer所有的题目总结
https://blog.youkuaiyun.com/wszy1301/article/details/80910626转载 2019-04-15 21:23:48 · 277 阅读 · 0 评论 -
搭配linux+Anaconda+TensorFlow+Keras+GPU环境
搭配linux+Anaconda+TensorFlow+Keras+GPU环境1. 安装anaconda注意:linux 系统不同,命令可能略有差异,如口令前sudo。以下都是如此。将安装包copy到Server(服务器一般都是linux系统)的根目录下,bash Anaconda3-5.2.0-Linux-x86_64.sh或者,wget https://repo.anaconda....原创 2019-03-03 11:27:48 · 432 阅读 · 0 评论 -
TypeError: string indices must be integers
@TypeError: string indices must be integers#今天再用Python读入json数据时,出现错误TypeError: string indices must be integers,折腾了一下午,排查了很多遍,也没能解决。最后发现,json的某些字段缺失,导致字典的键值不存在,就报上面的错了。加个if判断最终解决问题。...原创 2019-02-21 09:32:40 · 2629 阅读 · 0 评论 -
使用GPU进行训练,及解决jupyter 问题:The kernel appears to have died. It will restart automatically
转载自:https://blog.youkuaiyun.com/github_36326955/article/details/79910448代码如下:import osimport tensorflow as tfimport keras.backend.tensorflow_backend as KTF #进行配置,每个GPU使用80%上限现存os.environ[“CUDA_VISIBLE_...转载 2019-02-25 17:28:10 · 3315 阅读 · 0 评论 -
利用tf.reset_default_graph()重置default graph计算图以及nodes节点
import tensorflow as tftf.reset_default_graph() # 利用这个可清空defualt graph以及nodeswith tf.variable_scope(‘Space_a’):a = tf.constant([1,2,3])with tf.variable_scope(‘Space_b’):b = tf.constant([4,5,6])w...转载 2019-05-16 21:24:33 · 1976 阅读 · 0 评论