Unverified Commit 04ec054e authored by bdf's avatar bdf Committed by GitHub
Browse files

[Fix] Fix the bug of uninitialized prarmeter (#2345)



* [Fix] Fix the bug of uninitialized prarmeter

* refactor code for lint
Co-authored-by: default avatarbudefei <budefei@cambricon.com>
parent be684eeb
......@@ -27,6 +27,7 @@
inline int32_t getJobLimitCapability() {
CNcontext drv_ctx;
TORCH_CHECK(CN_SUCCESS == cnCtxGetCurrent(&drv_ctx), "cnCtxGetCurrent fails");
CNctxConfigParam ctx_conf_param;
TORCH_CHECK(
CN_SUCCESS == cnGetCtxConfigParam(drv_ctx, CN_CTX_CONFIG_UNION_LIMIT,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment