1. 代码运行遇见以下报错内容:
- RuntimeError: cublas runtime error : library not initialized at /opt/conda/conda-bld/pytorch_1549627089062/work/aten/src/THC/THCGeneral.cpp:250
- RuntimeError: merge_sort: failed to synchronize: device-side assert triggere
以上错误是某个变量的索引超出边界“index out of bounds”。需要查找错误变量,并对其进行更改。
见链接https://discuss.pytorch.org/t/solved-cuda-threadidx-error-from-aten-indexkernel-cu-53/40842