- 博客(6)
- 问答 (1)
- 收藏
- 关注
原创 tensorflow无法使用GPU训练(cuda版本问题)
今天使用tensorflow,想要用GPU训练,发现一直无法使用,于是网上搜索代码,查看本地是否能找到gpu(本人配置cuda11.0 tensorflow2.4.0)import tensorflow as tfgpus = tf.config.list_physical_devices(device_type='GPU')cpus = tf.config.list_physical_devices(device_type='CPU')print(gpus, cpus)结果只显示CPU,错误
2021-04-09 10:59:08 1930
原创 tomcat 1099端口被占
启动tomcat时错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use: JVM_Bind这里说的是1099端口被其它进程占
2021-03-09 16:01:10 193
原创 GPU训练错误
当时用Gpu进行训练时,我遇到了如下错误Failed to get convolution algorithm. This is probably because cuDNN failed to initialize,网上搜索了很多方法都没有解决,直到昨天看到一篇博客,在添加一行代码,实测可以解决问题。(原博客地址忘记了)代码如下:config = tf.compat.v1.ConfigProto(gpu_options=tf.compat.v1.GPUOptions(allow_growth=Tr
2020-12-22 09:31:23 267
原创 Jsoup对象常用parse方法的简单介绍
在我们使用Jsoup时,会创建各种对象,其中Jsoup对象就是其中之一,简单总结一下Jsoup 对象的parse方法(根据传智播客黑马程序员笔记)Jsoup 工具类 可以解析html或xml文档parse 解析html或xml文档,返回Document对象1.parse(File file,String charsetName) 用于解析html和xml文件2.parse(String html) 解析html和xml字符串3.parse(URL url ,int timeoutMillis)
2020-11-09 10:43:57 5465 1
空空如也
使用component注解后,找不到bean.xml的位置
2021-03-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人