logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'(在python命令后面加上 --gpu_ids -1)

1. 问题:AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'运行命令python train.py --data_dir sample_data时,出现上述错误。2. 参考:https://github.com/KupynOrest/DeblurGAN/issues/74从这里知道了下一个链...

java-练习2:MobilePhone

1,MobilePhone.javaimport java.util.*;public class MobilePhone {public static void entrance() {Scanner sc=new Scanner(System.in);int act=sc.nextInt();//输入的指令数字int s=sc.nextIn...

取消idm下载器和google浏览器的关联(让谷歌浏览器禁止使用idm插件)

https://jingyan.baidu.com/article/597035529ae46b8fc107405d.htmlIDM下载安装成功之后,会自动默认关联你电脑上的所有浏览器,在使用浏览器下载的时候自动会变成IDM下载。如果不想让IDM关联浏览器怎么办呢。本文介绍一下如何取消关联浏览器。打开idm下载器——>选项——>将google这一选项前面的勾去掉——>确定,即可.

allennlp train 参数

allennlp train命令的参数使用:在命令行运行:allennlp train -h,即可看到详细解释usage(用法): allennlp train [-h] -s SERIALIZATION_DIR [-r] [-f] [-o OVERRIDES][--file-friendly-logging][--cache-directory CACHE_DIRECTORY].

python:urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>

参考:https://blog.csdn.net/wu_xin1/article/details/109625029urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>1. 报错:python:urllib.error.URLError: <urlopen error [Errno 11004] getadd

Pytorch:GPU版代码改成CPU版(RuntimeError: torch.cuda.FloatTensor is not enabled.)

1. 问题:运行代码时出现错误:RuntimeError: torch.cuda.FloatTensor is not enabled.主要是因为我电脑没有英伟达显卡,不支持GPU加速,所以安装的PyTorch是cpu版本的,不是gpu版本的,不支持cuda。但是,这个代码作者说是此代码时专为用cuda运行而设计的,所以此处出错了。2. 解决:把cpu版本的代码改成cp...

WPS中插入代码段(使用Notepad++)

https://blog.csdn.net/everything1209/article/details/25782359使用notepad++在WPS中插入代码段:1)在notepad++中打开你的代码2)点击 插件->NppExport->Copy RTF to clipbor3)在wps中粘贴即可它会复制你的这种格式在剪切板中,你只要在word和wps中粘贴就可以了。...

allennlp使用

https://www.jiqizhixin.com/articles/2019-08-13-3 四种常见NLP框架使用总结(里面有关于allennlp的部分)AllenNLP是一个基于PyTorch的NLP研究库,可为开发者提供语言任务中的各种业内最佳训练模型。官网提供了一个很好的入门教程[2]https://guide.allennlp.org/,能够让初学者在30分钟内就了解AllenNLP

Google docs/slides的下载

https://blog.csdn.net/mzpmzk/article/details/79318029Google Drive/Docs/Presentation 的下载

    共 101 条
  • 1
  • 2
  • 3
  • 11
  • 请选择