自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

大黄老鼠的小本本

主攻big code 编程现场大数据

  • 博客(22)
  • 资源 (14)
  • 收藏
  • 关注

原创 写tf和pytorch遇到的一些错误以及解决办法(如果当时解决了的话)

Traceback (most recent call last): File "/root/userfolder/code/cc/CodeCompletion/CodeCompletionGNN.py", line 569, in <module> GnnTrainer(config).start() File "/root/userfolder/code/cc/CodeCompletion/CodeCompletionGNN.py", line 346, in start

2020-07-17 20:17:04 8830 4

原创 Qt5迁移到Qt6的一些坑

现在还没有QWebEngineViewQSet::fromList(xxx)没了要改成QSet(xxx.begin(), xxx.end())QString().vsprintf没了https://doc.qt.io/qt-5/qstring-obsolete.html#vsprintf改成QString::vasprintfhttps://doc.qt.io/qt-5/qstring.html#vasprintfQTime::start()和QTime::elapsed().

2021-04-19 18:04:29 1774

原创 Qt Mac 下发布使用了 QtWebEngine 程序的坑

我用的是brew安装的Qt,版本是5.13.2,mac版本是10.14.6。由于我用了QWebEngineView,发布后发现所有mac 10.14版本都无法正常显示网页。最后检查到是因为QtWebEngineProcess的dylib是错的,链接的还是系统的库,没有链接相对路径。参考:Qt Mac 下发布使用了 QtWebEngine 的程序但是这个的依赖好像还是有问题...

2021-04-13 22:20:00 910

原创 对QSettings进行一个封装

受到非类型类模板参数的一个应用场景,封装QSettings启发,写了一个简单的封装,感觉还是比较好用的。#include <QSettings>#include <QRect>class Settings {public: static Settings *instance(); static const char KEY_LAST_OPEN_NOTE_PATH[]; static const char KEY_TYPORA_PATH[];

2021-04-06 17:15:51 336

原创 Einsum Is All You Need

基础一直弄不清楚这个einsum,今天花了些时间学习,以下是学习记录。首先是找到了这个视频https://www.youtube.com/watch?v=CLrTj7D2fLM&ab_channel=FacultyofKhanWhy use EinsumExtremely Convenient and Compact有4个规则Any twice-repeated index in a single term is summed overij,j->i i is t

2020-10-17 15:43:15 338

原创 big code: Code Completion with Neural Attention and Pointer Networks 源码分析

代码和数据这篇论文的源码在:https://github.com/jack57lee/neuralCodeCompletion数据集在:http://plml.ethz.ch/经过处理的数据在:https://drive.google.com/open?id=1EZZuL8Rl3tatvxpIClvO_a8JD_Oid_oYvanillaLSTM首先分析最简单的vanillaLSTM代码是:https://github.com/jack57lee/neuralCodeCompletion

2020-10-14 21:12:09 503 8

原创 解决因LSTM导致的tensorflow gpu利用率低

最后的解决办法就是用CudnnLSTM替换原来的LSTM.我发现跑的模型,有的时候GPU利用率比较低。经过对模型的拆解运行,最后确定是LSTM拉低了GPU利用率。老的利用率截图新的利用率接近100%我最后重新写的代码见附录原来的代码见附录,我找了一番资料后,感觉写得也没有问题。tensorflow如何高效利用gpu进行rnnhttps://www.zhihu.com/question/299843655创建双向LSTMhttps://riptutorial.com/zh-CN/tens

2020-09-28 16:24:58 2591 1

原创 配置实验室公用GPU服务器

总体目标每个人的环境互相不影响每个人分配10个端口,其中第一个端口是ssh连接的端口(内网连接)要能用GPU跑深度学习实验可以用不同版本的cuda(暂未实现,实现了再写)可以ssh连接(目前内网可以)外网可以ssh连接(内网穿透用frpc可以实现,但每个人的配置不一样,目前没法统一配置)最好有一个图形化的管理界面(GitHub没找到,哪天有闲自己写一个吧),类似这种探索过程照着nvidia-docker的文档装好后,运行sudo docker run --rm --gpus all

2020-09-17 19:15:58 1166

原创 【配置分享】CLion构建MFC

我知道MFC很老了,但是VS写代码是真不习惯。探索记录C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include\afx.h(24): fatal error C1189: #error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll versio

2020-09-15 20:59:23 6183 2

原创 从autotool迁移到cmake

找到一些实现https://graphics.rwth-aachen.de:9000/OpenFlipper-Free/OpenFlipper-Free/blob/ps/cmake/FindGMP.cmakehttps://gitlab.inria.fr/batsim/batsched/blob/master/cmake/Modules/FindGMP.cmakehttps://intellij-support.jetbrains.com/hc/en-us/community/posts/360004

2020-08-10 10:17:52 333

原创 换电脑后,Zotero的一些配置

下载Zotero和dotfile略登录Zotero和坚果云Edit->Perferences->Sync->Settings坚果云的用户名密码在右上角 账户信息->安全选项->第三方应用管理配置ZotFile文件夹Tools->ZotFile Prefrences->General Settings其他的都可以不用改配置Zotero的Base directoryEdit->Perferences->Advanced->Fi

2020-07-06 21:12:44 2240

原创 big code: Code Completion with Neural Attention and Pointer Networks [IJCAI 2018][ccf A类 会议]

原文:Code Completion with Neural Attention and Pointer Networks作者:Jian Li单位:中国香港大学(The Chinese University of Hong Kong)会议:IJCAI 2018注:IJCAI是中国计算机学会推荐国际学术会议(人工智能)A 类,全称是International Joint Conference on Artificial Intelligence数据x = 7print x+1[ {"type

2020-05-26 23:41:11 374

原创 big code: Code Completion for Programming Education based on Recurrent Neural Network [IWCIA 2019]

这篇文章对我来说有重大意义,不是因为它有多好,而是因为它,我终于开始看CCF期刊和会议的分区了。看论文前要先看一下它发在哪里的,标一下CCF哪个区,是会议还是期刊。数据这里和 Learning Python Code Suggestion with a Sparse Pointer Network 一样没有用AST,直接词法分析后变ID模型嵌入,dropout,lstm,fc,softmax常规操作注意力的那个当指针的那个性能这个性能好高啊,我都懵了。都快80了,Code Com

2020-05-24 19:45:00 270 1

原创 big code: Open Vocabulary Learning on Source Code with a Graph–Structured Cache [ICLR 2019]

原文:Open Vocabulary Learning on Source Code with a Graph–Structured Cache作者:Milan Cvitkovic单位:加州理工学院(California Institute of Technology)会议:ICLR 2019这篇文章同 Deep Learning On Code with an Unbounded Vocabulary [EasyChair 2018]同一个作者,相似的内容,算正式版吧模型比前一篇多了不少

2020-05-23 15:20:32 357 2

原创 big code: Deep Learning On Code with an Unbounded Vocabulary [EasyChair 2018]

原文:Deep Learning On Code with an Unbounded Vocabulary作者:Milan Cvitkovic单位:加州理工学院(Caltech, California Institute of Technology)、Amazon AI会议:EasyChair 2018模型讲源代码转成AST在AST的基础上加各种边,如数据流,控制流(本文重点)变量的结点和subtoken之间加边用GGNN训练效果FILL-IN-THE-BLANKFixed&n

2020-05-21 18:49:33 231

原创 big code: 任务、数据集、网站等资源汇总 (持续更新)

Fill–In–The–Blank把一段代码某个变量挖空,然后预测这个变量名挖掉红色部分,但保留绿色部分,预测红色部分,看能不能预测出n这个变量相关论文Deep Learning On Code with an Unbounded Vocabulary [EasyChair 2018]Variable Naming把一段代码中,某一相同变量名全部挖空,自动生成这个变量名挖掉绿色部分,最后要预测出绿色部分的变量名是expectedsLength相关论文Deep Learning O

2020-05-21 18:08:09 4453

原创 big code: Code Completion/Suggestion 发展简史

模型统计语言模型(n-gram和RNN)Code Completion with Statistical Language Models [ACM SIGPLAN Notices 2014]RNNToward Deep Learning Software Repositories [MSR 2015]决策树Probabilistic Model for Code with Decision Trees [OOPSLA 2016]LSTMNeural Code Comp

2020-05-19 20:18:18 367

原创 big code: Toward Deep Learning Software Repositories [MSR 2015]

Toward Deep Learning Software Repositories [MSR 2015]原文:Toward Deep Learning Software Repositories作者:Martin White单位:威廉与玛丽学院(College of William & Mary)会议:MSR 2015模型语言模型p(s)=∏i=1mp(wi∣w1i−1)≈∏i=1mp(wi∣wi−n+1i−1)\begin{array}{rcl} p (s) = \prod

2020-05-16 22:33:38 211

原创 big code: Learning python code suggestion with a sparse pointer network [ICLR 2017]

Learning python code suggestion with a sparse pointer network [ICLR 2017]原文:Learning python code suggestion with a sparse pointer network作者:Avishkar Bhoopchand单位:伦敦大学学院(University College London)会议:ICLR 2017模型神经语言模型对序列S=a1,…,aNS = a_1, \ldots, a_NS

2020-05-15 16:39:45 259 1

原创 big code: Neural Code Completion [ICLR 2017]

原文:Neural Code Completion作者:Chang Liu, Xin Wang单位:加州大学伯克利分校(University of California, Berkeley)会议:ICLR 2017 (???为啥openreview网站上写reject)模型公式嵌入Ei=ANi+BTi\begin{array}{rcl} E_i = AN_i + BT_i\end{array}Ei​=ANi​+BTi​​LSTM(qfog)=(σσσtanh⁡)PJ,2J(xihi

2020-05-14 17:50:11 333

原创 big code: code2seq论文复现 Generating Sequences from Structured Representations of Code

这个代码其实是别人写的pytorch的实现:GitHubcode2seq复现数据test|reset test,Nm0|MarkerExpr|Mth|Void1,void test,Nm0|MarkerExpr|Mth|Nm2,METHOD_NAME void,Void1|Mth|Nm2,METHOD_NAME数据按行存,通过空格分隔开。其中,第一项test|reset是方法名,用竖线|分...

2020-04-30 18:50:13 927 9

原创 big code: code2seq Generating Sequences from Structured Representations of Code

code2seq论文:code2seq: Generating Sequences from Structured Representations of Code作者:Alon单位:以色列理工学院(Israel Institute of Technology)会议:ICLR 2019title、abstract、introduction、conclusionseq2seq在NMT取得了...

2020-04-08 19:41:32 977

QtDemo.zip

在CLion可以把Qt跑起来的cmake配置 https://blog.csdn.net/qq_32768743/article/details/80056316

2020-09-15

CMake MFC配置

在CLion里可以把MFC跑起来的cmake配置 https://blog.csdn.net/qq_32768743/article/details/108607583

2020-09-15

jpetstore.zip

jpetstore改成ssm版本 原始文章:https://blog.csdn.net/qq_32768743/article/details/106652627

2020-06-09

Qt多媒体 播放视频并显示字幕 演示代码

Qt多媒体 播放视频并显示字幕 演示代码 原文:https://blog.csdn.net/qq_32768743/article/details/103614316

2019-12-19

QTableWidget常用API小结 演示代码

用Qt的东西,每次都是在网上找,自己没有一个点总结。所以,这次把练手的项目中用到的一些点,专门提出来,写一些小结,希望以后能够对自己有帮助。说真的,Qt/C++真不适合做原型,写个DEMO用C++太累了。

2019-12-17

操作系统概念第7版和答案

操作系统是作为计算机硬件和计算机用户之间的中介的程序操作系统的目的是为用户提供方便且有效地执行程序的环境。操作系统是管理计箅机硬件的软件。硬件必须提供合适的机制来保证计算机系统的正确运行,以及确保系统不受用户程序干扰正常运行。根据操作系统不同的组织方式,它们内部各不相同。设计-个新的操作系统是主要的任务。在设计开始之前明确所设计系统的目标是非常重要的。这些目标构成了选择不同算法和策略的基础。因为操作系统庞大而复杂,因此它必须被分块构造。每一块都是系统中明确定义的一部分,具有严格定义的输入、输出和功能。

2019-04-06

freebase的entity id到真实数据的映射

freebase的entity id到真实数据的映射 /m/ 0gw0 Anarchism /m/ 0gwj Aut ism /m/0gx0 Albedo /m/0gxj Abu Dhabi /m/0gy0 A /m/0gyh Alabama /m/0gy_ Achilles /m/ 0gzh Abraham L incoln /m/0gz_ Aristotle /m/0g_ h An American in Paris /m/0g_ _W Academy Awa rd /m/0h0c Animalia ( book) /m/ 0h0q International Atomic Time /m/0h16 Alt ruism . /m/0h1p Ang Lee /m/0h25 Ayn Rand . /m/0h2p Alain Connes /m/0h34 Allan Dwan /m/0h3y Algeria /m/0h53 Atlas Shrugged /m/ 0h5k Anthropology /m/0h61 Archaeo logy /m/ 0h6k Agricultural science /m/0h70 Alchemy /m/0h7j Automatic dependent surveillancel /m/0h7x Austria /m/ 0h8d Ame rican Samoa /m/ 0h9c Ast ronome r /m/0h9v Amoeboid /m/ 0hb8 ASCII /m/0hcr Animation /m/0hd7 Apollo /m/0hdr . Andre Agassi

2019-04-05

XUNIT测试模式-测试码重构(英文)

XUNIT测试模式-测试码重构(英文) 还是英文版好,中文自己看着办 快来下载吧

2018-07-23

测试驱动开发的艺术

测试驱动开发的艺术 中文版 文件比较大 就多收点分吧 能不能呢?

2018-07-20

The UML Reference Manual 2nd Edition(英文)

uml参考手册 英文版 既可以学到uml的细节,又可以锻炼英文水平

2018-07-15

代码样例:x11 demo

一些简单的x11 demo,都是Hello World级别的,没有什么特殊的地方

2018-07-08

flatpak Qt版Hello World

使用flatpak搭建的一个小Demo,然后用flatpak打包。 总之,flatpak还是有搞头的。

2018-04-21

Spring MVC Demo

Spring MVC Demo. 一个用Gradle配置的Spring MVC开发环境,简单高效。

2018-03-17

数学建模算法与程序课后习题解答的程序及数据

文件夹 PATH 列表 卷序列号为 0000002C 486B:877C C:. │ tree.txt │ 说明.txt │ ├─01第1章 │ book1_1.xls │ data.mat │ data1_1.txt │ eti1_5.lg4 │ eti1_6.lg4 │ eti1_7.lg4 │ eti1_8_1.m │ eti1_8_2.m │ eti1_8_3.m │ eti1_8_4.lg4 │ eti_1_9.lg4 │ ex.txt │ ti1_1_1.m │ ti1_1_2.lg4 │ ti1_2_1.m │ ti1_2_2.lg4 │ ti1_3_1.lg4 │ ti1_3_2.lg4 │ ti1_4_1.m │ ti1_4_2.lg4 │ ├─02第2章 │ data2_1.txt │ data2_2.txt │ eti2_5_1.m │ eti2_5_2.lg4 │ eti2_6_1.m │ eti2_6_2.lg4 │ fen.txt │ gai.txt │ shuchu.txt │ sj.txt │ ti2_2.lg4 │ ti2_3.lg4 │ ti2_4_1.m │ ti2_4_2.lg4 │ ti2_4_3.lg4 │ ti2_4_4.m │ ti2_4_5.m │ ti2_4_6.lg4 │ ├─03第3章 │ eti3_5.lg4 │ eti3_6_1.m │ eti3_6_2.lg4 │ eti3_6_3.lg4 │ eti3_7_1.m │ eti3_7_2.lg4 │ ex37.txt │ fun3_2.m │ fun3_3.m │ fun3_4.m │ fun3_5.m │ ti3_1.lg4 │ ti3_1.m │ ti3_2.m │ ti3_3.m │ ti3_4_1.m │ ti3_4_2.lg4 │ ├─04第4章 │ eti4_10.m │ eti4_11.m │ eti4_12_1.m │ eti4_12_2.lg4 │ eti4_13.m │ eti4_14.m │ eti4_15.m │ eti4_16.m │ eti4_17.m │ ti4_1.m │ ti4_2.m │ ti4_3.m │ ti4_4.m │ ti4_5_1.lg4 │ ti4_5_2.lg4 │ ti4_6_1.m │ ti4_6_2.lg4 │ ti4_7_1.lg4 │ ti4_7_2.lg4 │ ti4_7_3.lg4 │ ti4_8.m │ ti4_9.lg4 │ txt41.txt │ ├─05第5章 │ data51.txt │ data53.txt │ data54.txt │ eti5_5.m │ eti5_6.m │ eti5_7_1.m │ eti5_7_2.m │ eti5_8.m │ ti5_1.m │ ti5_2.m │ ti5_3.m │ ti5_4.m │ ├─06第6章 │ eti6_10.m │ eti6_11.m │ eti6_12.m │ eti6_7_1.m │ eti6_7_2.m │ eti6_8_1.m │ eti6_8_2.m │ eti6_9.m │ ti6_1_1.m │ ti6_1_2.m │ ti6_2.m │ ti6_5_1.m │ ti6_5_2.m │ ti6_6.m │ ├─07第7章 │ ti7_1.m │ ti

2018-02-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除