- 博客(8)
- 收藏
- 关注
原创 The NVIDIA driver on your system is too old (found version 10010).
The NVIDIA driver on your system is too old (found version 10010).
2022-10-16 14:21:05
2093
原创 ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory 很奇怪,代码之前还可以跑,没有bug,第二天突然报错了。 看了很多博客,说是tensorflow版本与CUDA的版本不对应 查看cuda版本:nvcc --version 查看tensorflow版本:pip list 对应关系:https://tensorflow.google.cn/install/source 很明显我的不
2021-08-20 09:52:15
197
原创 IndentationError: unindent does not match any outer indentation level
IndentationError: unindent does not match any outer indentation level 1.根据报错的行数,查看缩进是否正确 2.查看空格键和TAB键 在pycharm下,file——>settings——>editor——>code style——>python 格式都统一为空格键 ...
2021-08-01 18:27:44
244
原创 python 读写文件
coding utf-8 import io import json import os with io.open("/home/ylwang/newspace/lxm/QFS-master/msmarco/eval_v2.1_public.json", “r”) as reader: #读文件 a = json.load(reader) pas = a[‘passages’] ans = a[‘answers’] que = a['query'] que_id = a['query_id'] que_t
2021-07-31 14:42:29
201
原创 error: the following arguments are required: dataset_file
俩种情况: 参数没有加– 如:parser.add_argument(‘dataset_file’,default=‘xxxx’, help=‘dataset file’) 修改为:parser.add_argument(’–dataset_file’,default=‘xxxx’, help=‘dataset file’) 2.参数没有加default值 加上’default=xxx’ ...
2021-07-05 21:09:26
1010
原创 XLNE run_squad.py
函数: 1.os.path.basename(),返回path最后的文件名; 2.tf.FixedLenFeature 返回的是一个定长的tensor; 3. tf.logging.info():在跟踪模型训练时,您需要将级别调整为INFO,这将提供适合操作正在进行的其他反馈。 examples: qas_id=qas_id, question_text=question_text, paragraph_text=paragraph_text,
2021-07-01 15:34:04
283
原创 机器阅读理解数据集
Cloze-style/ gap-filling(完型填空式) 任务定义:将文章中的某些单词隐去,让模型根据上下文判断被隐去的单词最可能是哪个。 数据集有:CNN/Daily Mail ,Children’s Book Test(CBT),BookTest,Who Did What,CLOTH, CliCR, LAMBADA,Quasar-S Muti-Choice多项选择题 任务定义:给定一篇文章和一个问题,让模型从多个备选答案中选择一个最有可能是正确答案的选项。 此类形式和初高中时英语阅读理解题的类型
2020-11-19 22:21:50
644
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅