forked from huawei/mindspore2022
!9605 Erase kAttrPynativeNextOpName and kAttrPynativeNextIndex after SelectKernel
From: @HulkTang Reviewed-by: @lianliguang,@jjfeing,@chujinjin Signed-off-by: @jjfeing
This commit is contained in:
commit
00a64bfa7c
|
|
@ -771,6 +771,8 @@ void AscendSession::SelectKernel(const KernelGraph &kernel_graph) const {
|
|||
size_t reduce_precision_count = 0;
|
||||
for (const auto &cnode : kernel_graph.execution_order()) {
|
||||
auto status = device::ascend::SelectKernelInfo(cnode);
|
||||
AnfAlgo::EraseNodeAttr(kAttrPynativeNextOpName, cnode);
|
||||
AnfAlgo::EraseNodeAttr(kAttrPynativeNextIndex, cnode);
|
||||
if (status == device::ascend::kStatusRaisePrecision) {
|
||||
raise_precision_count++;
|
||||
} else if (status == device::ascend::kStatusReducePrecision) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue