-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Prevent crashes for opencv exception and std::exception #14433
Conversation
@mxnet-label-bot add [Bug, OpenCV, Exception Handling, pr-awaiting-review] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this PR dependent on the waitall exception handling PR? I see duplicate code in these two PRs. Which one shall I review first?
This is dependent on waitall PR: #14397. Please review that one first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix! LGTM
src/resource.cc
Outdated
gpu_parallel_rand_.Get(ctx.dev_id, [ctx, seed, this]() { | ||
return new ResourceParallelRandom<gpu>(ctx, gpu_native_rand_copy_, seed); | ||
})->Seed(seed); | ||
if (ctx != Context::CPU()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ctx.dev_type == kGPU may be better.
@anirudh2290 Can you rebase with the master branch and resolve merge conflicts ? |
@piyushghai done ! this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
716715e
to
798a5e0
Compare
@apeforest can you take a look too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#define MX_API_BEGIN() \ | ||
try { \ | ||
on_enter_api(__FUNCTION__); | ||
#define MX_API_END() \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to have the defines inside the scopes a bit more ordered?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please elaborate on what you mean by that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, I think it's a separate discussion from this PR.
I approved already. Have a look at CI failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@mxnet-label-bot update [pr-awaiting-merge] |
Merged. Thank you! |
* Relax constexpr restriction * Change imagenet_gen_qsym_mkldnn * Revert constexpr change * Add dummy image for test * Fix unreverted change * Remove url * Fix imagenet change * Catch only std::exception * Fix const, remove dmlc::Error catch * Retrigger CI
* Relax constexpr restriction * Change imagenet_gen_qsym_mkldnn * Revert constexpr change * Add dummy image for test * Fix unreverted change * Remove url * Fix imagenet change * Catch only std::exception * Fix const, remove dmlc::Error catch * Retrigger CI
Description
fixes #8663 , fixes #9475, fixes #10389, fixes #13217
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments