!14346 [Bug][MI]open debugger,run bert net,appear unsupport data type

From: @islam_amin
Reviewed-by: @yelihua,@ouwenchang
Signed-off-by: @ouwenchang
This commit is contained in:
mindspore-ci-bot 2021-03-30 17:16:51 +08:00 committed by Gitee
commit 7dc02846a1
1 changed files with 2 additions and 2 deletions

View File

@ -1141,7 +1141,7 @@ void Debugger::LoadSingleAnfnode(const AnfNodePtr &anf_node, const size_t output
auto addr = AnfAlgo::GetOutputAddr(anf_node, output_index);
MS_EXCEPTION_IF_NULL(addr);
auto type = AnfAlgo::GetOutputInferDataType(anf_node, output_index);
if (type == kObjectTypeUMonad) {
if (type == kObjectTypeUMonad || type == kObjectTypeMonad || type == kObjectTypeIOMonad) {
return;
}
auto format = kOpFormat_DEFAULT;
@ -1206,7 +1206,7 @@ void Debugger::LoadGraphOutputs() {
auto addr = AnfAlgo::GetOutputAddr(node, j);
MS_EXCEPTION_IF_NULL(addr);
auto type = AnfAlgo::GetOutputInferDataType(node, j);
if (type == kObjectTypeUMonad) {
if (type == kObjectTypeUMonad || type == kObjectTypeMonad || type == kObjectTypeIOMonad) {
continue;
}
auto format = kOpFormat_DEFAULT;