
异常
BUG
小卜妞~
努力精通深度学习、精通机器学习、精通数据科学!
努力精通Java开发、熟练掌握计算机基础!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
BUG pytorch
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [1, 1]], which is output 0 of TBackward, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find th原创 2020-11-18 16:39:11 · 9879 阅读 · 7 评论 -
pytorch bug: Unable to find a valid cuDNN algorithm to run convolution
正常可运行的代码,突然出现bug: File "D:\ProgramFiles\Anaconda\lib\site-packages\torch\tensor.py", line 221, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph) File "D:\ProgramFiles\Anaconda\lib\site-packages\torch\autograd\__init__.原创 2021-10-28 10:34:26 · 19085 阅读 · 14 评论 -
h5文件的读写遇到的bug---pandas
用pandas读取获得的h5文件,简单操作之后,将dataframe重新存为h5文件(警告),再用pandas读取文件(报错),出现以下错误:F:\Anaconda3\lib\site-packages\pandas\io\pytables.py:270: PerformanceWarning: your performance may suffer as PyTables will pickle object types that it cannotmap directly to c-types [原创 2020-10-27 21:18:20 · 2322 阅读 · 0 评论 -
BUG[RuntimeError: There were no tensor arguments to this function ]
RuntimeError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::_cat. This usually means that this function requires a non-empty list of Tensors. Available原创 2020-10-12 09:37:33 · 3893 阅读 · 1 评论 -
BUG[AssertionError]
首先,AssertionError表示代码中的assert语句,其后面的条件是错误的,遇到这个错误检查一下bug追踪到的assert语句。我的错误:代码中,assert os.path.exist(path='../data/train'),路径错误,因此报错。原创 2020-10-12 08:41:16 · 4869 阅读 · 0 评论 -
BUG[Pytorch]:RuntimeError: Expected object of scalar type Int but got scalar type Float for argument
RuntimeError: Expected object of scalar type Int but got scalar type Float for argument #3 ‘mat1’…torch.float64Traceback (most recent call last): File "G:/Graph-master/train.py", line 173, in <module> main() File "G:/Graph-master/train.py",原创 2020-06-24 17:08:48 · 1549 阅读 · 0 评论 -
BUG:HDF5 library version mismatched error
今天用keras搭建了一个小的卷积网络,结果在jupyter-notebook中出现这样的错误,并一直要重启服务;在pycharm中也出现了同样的错误。以下是详细的错误信息,应该是HDF5版本不匹配了,更新一下版本试试:conda install -c anaconda hdf5=1.10.2哈哈哈哈!不顶用!还是报同样的错误!其他博主说,卸载了重装,好主意pip uninstall hdf5pip install hdf5Warning! ***HDF5 library version mi原创 2020-06-15 21:12:04 · 655 阅读 · 1 评论 -
Python异常002:SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xbc in position 0: invalid
报错日志:SyntaxError Traceback (most recent call last)F:\XXX\lib\site-packages\IPython\core\interactiveshell.py in safe_execfile(self, fname, exit_ignore, raise_exceptions,...原创 2020-03-15 12:57:49 · 5038 阅读 · 1 评论 -
Python异常001:takes 1 positional argument but 2 were given
报错日志:---------------------------------------------------------------------------TypeError Traceback (most recent call last)<ipython-input-10-934a5ad0c6c7> in...原创 2020-03-15 11:02:50 · 24897 阅读 · 2 评论 -
IDEA连接本地mysql测试为failed【多半是时区的问题】【The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized...】
看下面报的异常:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.意思是时区不匹配了,出错的原因是mysql的时区值设置的不正确。mysql默认的时区值是美国,中国的时区要比美国晚8小时,需要采用+8:00的格式。我们登录mysql,查看当前的...原创 2019-04-07 19:54:24 · 433 阅读 · 0 评论 -
vue学习【引入外部js文件,出现异常:Uncaught SyntaxError: Unexpected token】
今天做一个 VUE 的项目,在引入 JS 文件时,遇到了一个问题:报错信息控制台的提示:Uncaught SyntaxError: Unexpected token <按照提示进入文件,再看如下图:问题来源提示:<!DOCTYPE html> 出错,是跟我开玩笑是吧!但根据以往的印象,这个好像是引入 JS 的问题,确认 JS 文件没出错后,...转载 2019-05-05 09:45:30 · 11424 阅读 · 0 评论 -
git突然push不到gitee:Updates were rejected because the tip of your current branch is behind
有如下几种解决方法:我使用了第三种方法,完美解决!第二种方法仍然报错。 * branch master -> FETCH_HEADfatal: refusing to merge unrelated histories原因:https://www.centos.bz/2018/03/git-%E5%87%BA%E7%8E%B0-fatal-re...转载 2019-04-09 17:55:29 · 364 阅读 · 0 评论 -
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'cityController' bean method
@GetMapping("/get_collection")同一个根地址下的mapping映射的名字不能重复!!!原创 2019-04-10 07:51:03 · 225 阅读 · 0 评论 -
Everything up-to-date Branch 'poverty' set up to track remote branch 'poverty' from 'origin'.
$ git push -u origin povertyUsername for 'https://gitee.com': 15735657351Everything up-to-dateBranch 'poverty' set up to track remote branch 'poverty' from 'origin'.原创 2019-04-11 08:56:41 · 3957 阅读 · 1 评论