当前位置:网站首页>ninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.
2022-07-03 05:17:00 【Qianyu QY】
run DANet when , When running to the following code , There is a mistake like this ;
import os
import torch
from torch.utils.cpp_extension import load
cwd = os.path.dirname(os.path.realpath(__file__))
cpu_path = os.path.join(cwd, 'cpu')
gpu_path = os.path.join(cwd, 'gpu')
cpu = load('enclib_cpu', [
os.path.join(cpu_path, 'operator.cpp'),
os.path.join(cpu_path, 'encoding_cpu.cpp'),
os.path.join(cpu_path, 'syncbn_cpu.cpp'),
os.path.join(cpu_path, 'roi_align_cpu.cpp'),
os.path.join(cpu_path, 'nms_cpu.cpp'),
os.path.join(cpu_path, 'rectify_cpu.cpp'),
], build_directory=cpu_path, verbose=False)
if torch.cuda.is_available():
gpu = load('enclib_gpu', [
os.path.join(gpu_path, 'operator.cpp'),
os.path.join(gpu_path, 'activation_kernel.cu'),
os.path.join(gpu_path, 'encoding_kernel.cu'),
os.path.join(gpu_path, 'syncbn_kernel.cu'),
os.path.join(gpu_path, 'roi_align_kernel.cu'),
os.path.join(gpu_path, 'nms_kernel.cu'),
os.path.join(gpu_path, 'rectify_cuda.cu'),
os.path.join(gpu_path, 'lib_ssd.cu'),
], extra_cuda_cflags=["--expt-extended-lambda"],
build_directory=gpu_path, verbose=False)
reason :
torch Too high a version leads to . my torch when 1.10 edition .
terms of settlement :
torch Change it to 1.4.
边栏推荐
- leetcode435. Non overlapping interval
- Gbase8s composite index (I)
- Appium 1.22. L'Inspecteur appium après la version X doit être installé séparément
- Differences among bio, NiO and AIO
- 大学校园IP网络广播-厂家基于校园局域网的大学校园IP广播方案设计指南
- Web APIs exclusivity
- Deep embedding and alignment of Google | protein sequences
- Intégration profonde et alignement des séquences de protéines Google
- Go practice -- gorilla/rpc (gorilla/rpc/json) used by gorilla web Toolkit
- 微服务常见面试题
猜你喜欢
Go practice -- gorilla / websocket used by gorilla web Toolkit
leetcode406. Rebuild the queue based on height
酒店公共广播背景音乐-基于互联网+的酒店IP网络广播系统设计
How to connect the network: Chapter 2 (Part 1): a life cycle of TCP connection | CSDN creation punch in
Promise
"Hands on deep learning" pytorch edition Chapter II exercise
Skip table: principle introduction, advantages and disadvantages of skiplist
Deep embedding and alignment of Google | protein sequences
微服务常见面试题
Kept hot standby and haproxy
随机推荐
1086 tree traversals again (25 points)
Ueditor, FCKeditor, kindeditor editor vulnerability
Problems encountered in fuzzy query of SQL statements
Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)
Shallow and first code
Transferring images using flask
Compile and decompile GCC common instructions
Rust基础入门之(基本类型)
1094 the largest generation (25 points)
谷歌 | 蛋白序列的深度嵌入和比对
乾元通多卡聚合路由器的技术解析
Introduction to deep learning (II) -- univariate linear regression
Common methods of JS array
Detailed explanation of yolov5 training own data set
(subplots usage) Matplotlib how to draw multiple subgraphs (axis field)
Kept hot standby and haproxy
Principles of BTC cryptography
appium1.22.x 版本后的 appium inspector 需单独安装
Detailed explanation of the output end (head) of yolov5 | CSDN creation punch in
联想R7000显卡的拆卸与安装