Fix getting output address of internal output
This commit is contained in:
parent
7fbed0ce94
commit
2409140178
|
@ -312,11 +312,11 @@ void SessionBasic::InitInternalOutputParameter(const AnfNodePtr &out_node, const
|
||||||
MS_LOG(INFO) << "No kernel info";
|
MS_LOG(INFO) << "No kernel info";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto address = AnfAlgo::GetMutableOutputAddr(ref_real_node, ref_real_node_index);
|
if (!AnfAlgo::OutputAddrExist(ref_real_node, ref_real_node_index)) {
|
||||||
if (address == nullptr) {
|
|
||||||
MS_LOG(INFO) << "No kernel address";
|
MS_LOG(INFO) << "No kernel address";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
auto address = AnfAlgo::GetMutableOutputAddr(ref_real_node, ref_real_node_index);
|
||||||
auto format = AnfAlgo::GetOutputFormat(ref_real_node, ref_real_node_index);
|
auto format = AnfAlgo::GetOutputFormat(ref_real_node, ref_real_node_index);
|
||||||
auto type = AnfAlgo::GetOutputDeviceDataType(ref_real_node, ref_real_node_index);
|
auto type = AnfAlgo::GetOutputDeviceDataType(ref_real_node, ref_real_node_index);
|
||||||
auto d_kernel_info = std::make_shared<device::KernelInfo>();
|
auto d_kernel_info = std::make_shared<device::KernelInfo>();
|
||||||
|
|
Loading…
Reference in New Issue