forked from mindspore-Ecosystem/mindspore
!9451 OpDebuger adapt to new run package
From: @jojobugfree Reviewed-by: @chujinjin,@jjfeing Signed-off-by: @chujinjin
This commit is contained in:
commit
ba88bf90c6
|
@ -33,7 +33,8 @@ class AscendKernelMod : public KernelMod {
|
|||
uint32_t block_dim() { return block_dim_; }
|
||||
uint32_t stream_id() { return stream_id_; }
|
||||
virtual bool NeedDump() {
|
||||
return DumpJsonParser::GetInstance().NeedDump(kernel_name_) && DumpJsonParser::GetInstance().async_dump_enabled();
|
||||
const auto &dump_json = DumpJsonParser::GetInstance();
|
||||
return dump_json.NeedDump(kernel_name_) && dump_json.async_dump_enabled() && dump_json.op_debug_mode() == 0;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue