mirror of https://github.com/open-mmlab/mmcv.git
[Fix] Fix the bug of uninitialized prarmeter (#2345)
* [Fix] Fix the bug of uninitialized prarmeter * refactor code for lint Co-authored-by: budefei <budefei@cambricon.com>pull/2311/head^2
parent
be684eeb4c
commit
04ec054e6b
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
inline int32_t getJobLimitCapability() {
|
inline int32_t getJobLimitCapability() {
|
||||||
CNcontext drv_ctx;
|
CNcontext drv_ctx;
|
||||||
|
TORCH_CHECK(CN_SUCCESS == cnCtxGetCurrent(&drv_ctx), "cnCtxGetCurrent fails");
|
||||||
CNctxConfigParam ctx_conf_param;
|
CNctxConfigParam ctx_conf_param;
|
||||||
TORCH_CHECK(
|
TORCH_CHECK(
|
||||||
CN_SUCCESS == cnGetCtxConfigParam(drv_ctx, CN_CTX_CONFIG_UNION_LIMIT,
|
CN_SUCCESS == cnGetCtxConfigParam(drv_ctx, CN_CTX_CONFIG_UNION_LIMIT,
|
||||||
|
|
Loading…
Reference in New Issue