- 博客(10)
- 资源 (10)
- 收藏
- 关注
原创 python测试样例
使用python编写测试样例,对代码进行测试.import inspectimport itertoolsimport osimport tempfileimport torch.nn.functional as Fimport unittestimport numpy as npimport torchclass TorchFunctionTests(unittest.Tes...
2018-09-23 09:40:50 700
原创 操作系统页面置换算法RR
data4.txt输入文件内容:53A B C D E0 6 10 16 2415 10 12 4 8//#include <iostream>#include <queue>#include <iomanip>#include <fstream>using namespace std;
2018-09-22 10:35:01 1004
原创 nccl安装
nccl安装wget https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.debsudo dpkg -i nvidia-machine-learning-repo-u...
2018-09-21 17:10:02 958
原创 使用tuna等源安装pytorch和tensorflow
阿里云或者豆瓣的镜像。阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/豆瓣 http://pypi.douban.com/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/中国科学技术大学 http://...
2018-09-21 17:07:52 2829
原创 使用ppa源安装python3.6
安装python3.6sudo add-apt-repository ppa:deadsnakes/ppasudo apt updatesudo apt install python3.6 python3.6-dev -y安装pip3.6wget https://bootstrap.pypa.io/get-pip.pysudo python3.6 get-pip.py...
2018-09-21 17:05:33 3521
原创 linux16.04安装cuda和cudnn, TensorRT
安装cudawget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.debsudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.debsudo apt-key adv --...
2018-09-21 17:03:38 679
原创 matplotlib 画折线图
import matplotlib.pyplot as pltx1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]y1 = [30, 31, 31, 32, 33, 35, 35, 40, 47, 62, 99, 186, 480]x2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]y2 =...
2018-09-19 16:42:50 475
原创 tmux 安装
a)ubuntu版本下直接apt-get安装 sudo apt-get install tmuxb)centos7版本下直接yum安装 yum install -y tmux手动安装:tmux官网下载地址:http://tmux.github.io/ # yum install libevent libevent-devel ncurses-devel# tar -zvxf...
2018-09-09 11:19:07 819
原创 tmux使用
tmux基本使用 tmux是一个优秀的终端复用软件,即使非正常掉线,也能保证当前的任务运行,这一点对于远程SSH访问特别有用,网络不好的情况下仍然能保证工作现场不丢失! tmux完全使用键盘控制窗口,实现窗口的切换,像是Chrome的方式管理shell,使用起来很方便,byubo也有同样的功能。 tmux命令都具有一个前缀命令(PREFIX),默认的是CTRL+...
2018-09-09 11:10:19 432
原创 grad_fn 里面的next_functions 属性
next_functions 反向传播计算图的记录。 在反向图的计算中,计算图终止于叶子AccumulateGrad节点。有一个.variable属性指向叶子节点。例子:a = torch.randn(1, requires_grad=True)b = a*(a+2)print (b.grad_fn.next_functions)print (b.grad_fn.next_fu...
2018-09-05 10:31:29 6240 1
McGrawHill_-_Machine_Learning_-Tom_Mitchell课后答案
2016-04-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人