热门

最新

红包

立Flag

投票

同城

我的

发布
frank_haha
frank_haha
2 年前
truefrank_haha

The paging file is too small for this operation to complete. Error loading "C:\Users\16608\AppData\Roaming\Python\Python310\site-packages\torch\lib\cufft64_10.dll" or one of its dependencies.

网络太大,限制num_workers=1即可
num_workers 指 cpu 并行处理数据的线程数,num_workers 设置过大会占用过多 CPU 资源。因此,限制num_workers=1可以大幅减轻 CPU 压力

上述报错是 CPU 资源不够,GPU 资源不够一般是 memory, cuda 报错

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
import subprocessimport os# 转换函数def convert_md_to_docx(md_file, docx_file): try: subprocess.run(['pandoc', md_file, '-o', docx_file], check=True) print(f'Converted "{md_file}" to "{docx_file}"') except subprocess.CalledProcessError as e: print(f'An error occurred while converting "{md_file}": {e}')# 递归遍历文件夹def convert_folder(folder_path): for root, dirs, files in os.walk(folder_path): for file in files: if file.endswith('.md'): md_file_path = os.path.join(root, file) docx_file_path = os.path.splitext(md_file_path)[0] + '.docx' convert_md_to_docx(md_file_path, docx_file_path)# 设置要转换的文件夹路径folder_to_convert = 'path_to_your_folder' # 将此路径替换为你的Markdown文件所在的文件夹路径# 开始转换convert_folder(folder_to_convert)
立即登录