
错误
濯君
求知,内敛,有趣,勤静
展开
-
Project ‘org.springframework.boot:spring-boot-starter-parent:2.4.5‘ not found
在使用IntelliJ IDEA 时出现这个问题,选择File—>Invalidate Caches / Restart…就可以解决这个问题,因为更新之后,缓存没有及时生效,重启之后就好了。参考原创 2021-05-05 20:00:54 · 6550 阅读 · 5 评论 -
what(): extrema failed to get memory buffer: invalid device function
报错原因,在CMakeLists.txt里cuda 版本与arch code版本不匹配版本匹配的参考比如cuda 9对应的版本-arch=sm_50 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=...原创 2020-04-23 15:30:14 · 216 阅读 · 0 评论 -
2020-2 问题日志
2.21tf.data.Dataset 最后剩下的数据不够一个batchdataset = dataset.batch(3, drop_remainder=True)#drop_remainder设为Truereference1reference2reference3用vim打开后中文乱码怎么办?设置~下的.vimrc文件,加上fileencodings、enc、fencs,代码如...原创 2020-02-22 09:54:07 · 237 阅读 · 0 评论 -
2019-12 问题日志
12.8tensorflow 添加 report_tensor_allocations_upon_oom optionslinux 离线安装Java原创 2019-12-09 14:39:55 · 182 阅读 · 0 评论 -
2019-11问题日志
11.15Linux 下使用anaconda安装matlab engineInstall MATLAB Engine API for Python in Nondefault LocationsAnaconda install Matlab Engine on LinuxCorrupted installation of MATLAB Engine for PythonImportErr...原创 2019-11-15 14:25:00 · 265 阅读 · 0 评论 -
Linux 下mnist.load_data()出错
1.将mnist.pkl.gz下载到本地路径~/.keras/datasets/2.使用cPickle加载下载的数据import gzipimport cPicklef = gzip.open('mnist.pkl.gz', 'rb')(X_train, y_train), (X_test, y_test) = cPickle.load(f)f.close()参考1参考2...原创 2019-07-10 15:33:45 · 1132 阅读 · 0 评论 -
Error in plot.new() : figure margins too large
使用Rstudio的plot函数绘制图形出现了错误:Error in plot.new() : figure margins too large解决方法:首先使用代码par("mar")检查mar参数,多半会得到这个结果[1] 5.1 4.1 4.1 2.1重置这个参数par(mar=c(1,1,1,1))然后问题就解决了来源...转载 2019-01-13 20:40:53 · 12035 阅读 · 12 评论 -
word中分栏后文字均匀的分布在了左右两栏,而不是填满左栏再填右栏,怎么办?
应该是在设置分栏时选定了部分段落。解决办法: 重新设置分栏,通过菜单:格式→分栏→栏数设置成2,并将“应用于”设置成“整篇文档”→确定。 回到普通界面后,将文档里的“分节符(连续)”标记全部删除。如果你看不到“分节符(连续)”标记,是因为这些标记被隐藏了,可以点击工具栏里的“显示/隐藏编辑标记”按钮显示出来。“显示/隐藏编辑标记”按钮的位置:参考1参考2...原创 2018-11-23 20:13:10 · 44200 阅读 · 5 评论 -
scp 命令Unable to negotiate with xxx.xx.xx.xx port 22: no matching cipher found.
在本地的/etc/ssh/ssh_config,使用root增加Ciphers aes192-cbc,aes256-cbc原创 2018-11-12 11:01:00 · 20586 阅读 · 2 评论 -
在一个gradle 的maven property 里添加多个URL
这样是会报错的repositories { mavenCentral() maven { url "http://maven.springframework.org/release" url "http://maven.restlet.org" }}正确的做法:repositories { maven { url "h转载 2018-01-12 10:54:52 · 9347 阅读 · 0 评论 -
Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:25.0.1
Starting from version 26 of support libraries make sure that the repositories section includes a maven section with the “https://maven.google.com” endpoint.在project gradle file -allprojects {转载 2018-01-10 11:46:53 · 965 阅读 · 0 评论 -
Java编译时出现 No enclosing instance of type Main is accessible. Must qualify the allocation with an encl
今天在编译Java程序的时候出现以下错误:No enclosing instance of type Main is accessible. Must qualify the allocation with an enclosing instance of type Main (e.g. x.new A() where x is an instance of Main).我原来编写的源代码是这样的p转载 2017-01-08 11:10:01 · 1066 阅读 · 0 评论 -
java里的subString方法
1.两个例子"hamburger".substring(4, 8) returns "urge" "smiles".substring(1, 5) returns "mile"2. String s = "asklj我aslkjdhs们aaksd"; String s1 = s.substring(s.indexOf("我") + 1, s.indexOf("们"));原创 2016-10-20 15:57:46 · 748 阅读 · 0 评论 -
编程语法错误小集
1.double数据类型,没有toString()方法。原创 2016-10-20 15:47:26 · 706 阅读 · 0 评论