- 博客(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
9575
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
2063
原创 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
1191
原创 对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
418
原创 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
409
原创 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
575
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
2913
2
原创 配置实验室公用GPU服务器
总体目标每个人的环境互相不影响每个人分配10个端口,其中第一个端口是ssh连接的端口(内网连接)要能用GPU跑深度学习实验可以用不同版本的cuda(暂未实现,实现了再写)可以ssh连接(目前内网可以)外网可以ssh连接(内网穿透用frpc可以实现,但每个人的配置不一样,目前没法统一配置)最好有一个图形化的管理界面(GitHub没找到,哪天有闲自己写一个吧),类似这种探索过程照着nvidia-docker的文档装好后,运行sudo docker run --rm --gpus all
2020-09-17 19:15:58
1336
原创 【配置分享】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
7245
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
447
原创 换电脑后,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
2628
原创 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
421
原创 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
357
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
412
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
290
原创 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
4650
原创 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
467
原创 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
274
原创 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
303
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+BTiLSTM(qfog)=(σσσtanh)PJ,2J(xihi
2020-05-14 17:50:11
405
原创 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
1039
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
1109
QtDemo.zip
2020-09-15
CMake MFC配置
2020-09-15
jpetstore.zip
2020-06-09
Qt多媒体 播放视频并显示字幕 演示代码
2019-12-19
QTableWidget常用API小结 演示代码
2019-12-17
操作系统概念第7版和答案
2019-04-06
freebase的entity id到真实数据的映射
2019-04-05
数学建模算法与程序课后习题解答的程序及数据
2018-02-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人