
代码调试日志
咸鱼酱
没有
展开
-
【Bazel】Install on RedHat7.4 from source 菜鸟记录
问题背景:在RedHat7.4,1个P100GPU,4个Power8 core,100G内存的高档机器上运行textsum on TensorFlow,Google。 https://github.com/tensorflow/models/tree/master/research/textsum愚蠢的本人:目前对 Bazel的了解还不是很深入,而这段代码的运行是需要先用Bazel编译的;通过原创 2018-01-18 18:16:06 · 791 阅读 · 0 评论 -
【textsum/seq2seq_attention】调试日志
===================================================== 草稿区:# Run training processbazel-bin/textsum/seq2seq_attention \ --mode=train \ --article_key=article \ --abstract_key=abstract \原创 2018-01-18 18:30:59 · 752 阅读 · 0 评论 -
【swig】Ubuntu环境下安装
Step 1 Download source code从此地址下载,具体自己看着办 http://www.swig.org/download.htmlStep 2 安装g++sudo apt-get install g++Step 3 安装pcresudo apt-get install libpcre3 libpcre3-devpcre的具体功能直接参照某度百科...原创 2018-02-11 01:30:11 · 4178 阅读 · 1 评论 -
Python MemoryError Problem
Python的内存管理相对于C++来说相当低效已经是老生之谈了。今天遇到了一个内存问题,大概是我想拿30000×51230000\times{512}30000×512的一个矩阵来和它自己的转秩做类似内积的运算。在Python中查看一个变量占多少内存的指令如下:import numpy as npfrom sys import getsizeofa = [0] * 1024b = np.a...原创 2018-10-15 02:42:09 · 2140 阅读 · 0 评论 -
Tensor2Tensor GPU Memory Error During Training
When I was training Transformer based on 12M+ source sentences and equal number of target sentences (batch size equals 4096, platform is 4×TITANXp4\times{TITAN Xp}4×TITANXp), it reports error like thi...原创 2018-10-11 04:03:45 · 1154 阅读 · 0 评论 -
gdb调试C的一些小笔记
单纯只是自己在写ECE637这门课的时候想把代码吃透一些才搞这些的,开这篇文章也只是单纯的自己记性不好而已。一般操作1. 带参数的gdbYou can run gdb with --args parametergdb --args executablename arg1 arg2 arg32. 切换tui窗口方案一:gdb -tui executablename方案二:先使用...原创 2019-01-04 10:14:49 · 237 阅读 · 0 评论 -
Expect script登录remote server
由于所在实验室的server实在是太多了…而且一般中间还有两个jumpserver…这个人又实在是太懒了,就瞎扣jio写了个差不多能用的expect脚本来方便登录各个服务器#!/usr/bin/expectset timeout -1send_user "Log into XXX Remote Server\n"### Prepare the variableset ECN_USER...原创 2019-01-11 02:34:22 · 294 阅读 · 0 评论 -
Keep a fork up to date
想要使得自己fork下來的repo和原來fork的對象保持一致。git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.gitgit fetch upstreamgit merge upstream/master master...原创 2019-05-14 22:30:22 · 295 阅读 · 0 评论 -
【Auto-sklearn】MacOS安装笔记
MacOS安装主要是会遇到以下的问题: 主要是pyrfr这个包在安装的时候编译(抑或是链接 ?_?)的地方出了问题。所以需要手动安装好pyrfr之后再安装auto-sklearn才行。 安装pyrfr注意事项:pyrfr == 0.6.1, 下载地址https://pypi.python.org/pypi/pyrfr/0.6.1将上述的包下载下来后解压,解压后修改安装文件setup.py原创 2017-12-04 11:13:22 · 2153 阅读 · 0 评论 -
【TensorBoard】打开出错(空白blank, Netword error)
当前版本:TensorBoard:tensorflow-tensorboard (0.4.0rc3)Network Error:输入tensorboard --logdir=./logs 之后,系统反馈什么就在浏览器里输什么,或者直接http://localhost:6006/。输http://0.0.0.0/6006/会出错。TensorBoard 空白:tensorfl原创 2017-12-04 09:34:21 · 985 阅读 · 0 评论 -
#Object Proposal# 11月9日调试日志
上午9时:想把new和delete调到循环外,但是这个时候却出现了错误。貌似是Op的预测盒子的坐标出现了错误值。错误排查中。解决:因为对于该循环,为了加快使用了并行计算。如果把new提到循环外面会导致多个线程共用一块内存区域,数据就会发生冲突,因此导致了数据的错乱。上午9时四十分:上面的问题倒是解决了,然后内存就炸了。解决:其实情况是这样的,我在一个Class下面建了一原创 2016-11-09 09:38:59 · 586 阅读 · 0 评论 -
mac osx libsvm与python接口:ModuleNotFoundError: No module named 'svm'
系统为oxs,python平台为anaconda简单粗暴打包下载版,想要使用libsvm,采用方案为以下网址:http://blog.youkuaiyun.com/daizziad1314/article/details/52528395对这个方案我想先做出以下两点修正:1. mac os 应该是在libsvm的路径下执行 >> make lib;虽然说个人现在也不是很懂这一步的意义是什么,也原创 2017-02-21 15:01:27 · 7224 阅读 · 3 评论 -
关于Python相对路径的两三句话
今天主要在作图,作图的效果恶心到了自己这点先撇开不谈,我是想从该工作目录的上一个路径的另一个文件夹下读入一个excel表格。于是C++带入感特别强,什么"..\xx\xxxx.xlsx"。然后就报错了...写在这里提醒一下自己,对于Python而言,貌似必须要这么用:绝对路径:os.path.abspath("文件名"):相对路径:os.path.dirname("文件名"):原创 2017-03-04 15:10:47 · 911 阅读 · 0 评论 -
【Theano】单层带先验感知器:3月18日调试日志
先不吐槽DreamS的工作效率了,已经连续两天天天睡一个小时就自动醒来翻Applyweb。接下来,遇到的报错如下:ValueError: Input dimension mis-match. (input[0].shape[1] = 1, input[1].shape[1] = 3)Apply node that caused the error: Elemwise{mul,n原创 2017-03-19 09:55:22 · 696 阅读 · 0 评论 -
anaconda2和3同在的情况下的pip install
本人电脑系统Mac,同时装了anaconda2和3。pip install的时候默认总是装在Python2的site-package下。简单粗暴解决方案:alias pip = /Users/dalao/anaconda/bin/pippip --version就可以看到成功更改pip的结果了~~\(≧▽≦)/~想要撤销的话就unalias pip原创 2017-04-16 22:45:22 · 2424 阅读 · 3 评论 -
Virtualenv使用笔记(待完成)
Initialize a virtual environment:virtualenv venvsource venv/bin/activatepip install -r requirements.txtExit from virtual environment:deactivate原创 2017-10-09 10:39:31 · 279 阅读 · 0 评论 -
ImportError: cannot import name 'downsample'
写于Theano宣布停止更新第五天。本来是想调一下ntm-one-shot的代码的,地址如下https://github.com/tristandeleu/ntm-one-shot。但是在走到venv/bin/py.test mann -vv这一步的时候测试命令报错:from theano.tensor.signal import downsampleE ImportErr原创 2017-10-04 16:53:23 · 5502 阅读 · 0 评论 -
Python functools学习笔记(一)
一、 functools.partial简单来说,这个函数通过传入部分所需要的参数并且 “重新定义” 函数名称。这样简化函数,更少更灵活的函数参数调用。 例如下面一个简单的例子: import functools def add(a, b): return a + b add(4, 2) 6 plus3 = functools.partial(原创 2017-10-12 13:39:56 · 440 阅读 · 0 评论 -
GIT Commit to an existing Tag
Original page: https://gist.github.com/danielestevez/2044589Create a branch with the taggit branch {tagname}-branch {tagname}git checkout {tagname}-branchInclude the fix manually if it’s just ...转载 2019-08-06 01:45:14 · 316 阅读 · 1 评论