你好,我最近想用这个方法去结合半监督学习来实现实体关系抽取,我将数据集拆分成有标签和无标签的,但是在训练时,一直会报一些错误。比如:RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.这是我仅运行有标签训练部分
代码时发生的,运行整个框架时也会发生。但是我有标签训练部分代码没修改几乎是源码,为什么会发生这种问题?下面是部分代码:
if args.do_train:
logger.info("------Training------")
if args.embed_mode == "albert":
input_size = 4096
else:
input_size = 768
你好,我最近想用这个方法去结合半监督学习来实现实体关系抽取,我将数据集拆分成有标签和无标签的,但是在训练时,一直会报一些错误。比如:RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with
TORCH_USE_CUDA_DSA
to enable device-side assertions.这是我仅运行有标签训练部分 代码时发生的,运行整个框架时也会发生。但是我有标签训练部分代码没修改几乎是源码,为什么会发生这种问题?下面是部分代码: if args.do_train: logger.info("------Training------") if args.embed_mode == "albert": input_size = 4096 else: input_size = 768