未验证 提交 8b58862a 编写于 作者: W Wilber 提交者: GitHub

fix compile error on jetson (#39441)

上级 52d6b306
......@@ -64,7 +64,7 @@ static inline int RoundToPowerOfTwo(int n) {
#ifdef WITH_NV_JETSON
// The number of threads cannot be assigned 1024 in some cases when the device
// is nano or tx2 .
inline void ChangeThreadNum(const pten::CUDAContext& context,
inline void ChangeThreadNum(const pten::GPUContext& context,
int* num_thread,
int alternative_num_thread = 512) {
if (context.GetComputeCapability() == 53 ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册