forked from mindspore-Ecosystem/mindspore
!8548 handle getNextOutput and contiguous conflict
From: @laiyongqiang Reviewed-by: @kisnwang,@jjfeing Signed-off-by: @jjfeing
This commit is contained in:
commit
3c6b91f6fa
|
@ -69,12 +69,12 @@ bool Somas::Allocate(const session::KernelGraph *graph) {
|
|||
bool Somas::InitSomasTensors(const session::KernelGraph *graph) {
|
||||
MS_EXCEPTION_IF_NULL(graph);
|
||||
InitBasicInfo(graph);
|
||||
GetNextOutputProcess(graph);
|
||||
IndependentNodeOutputProcess(graph);
|
||||
SummaryInputProcess(graph);
|
||||
RefNodeProcess(graph);
|
||||
UnReuseNodeProcess(graph);
|
||||
GenContiguousList(graph);
|
||||
GetNextOutputProcess(graph);
|
||||
|
||||
if (tensors_list_.empty()) {
|
||||
MS_LOG(INFO) << "No Tensor from graph " << graph->graph_id();
|
||||
|
@ -273,6 +273,7 @@ void Somas::GetNextOutputProcess(const session::KernelGraph *graph) {
|
|||
if (iter != nodes_map_.end()) {
|
||||
auto getnext_output_tensors = iter->second->output_tensors_;
|
||||
for (auto &tensor : getnext_output_tensors) {
|
||||
if (tensor->contiguous_) continue;
|
||||
tensor->offset_ = total_size;
|
||||
total_size += tensor->GetAlignedSize();
|
||||
tensor->lifelong_value_ = kLifeLongGraphAll;
|
||||
|
|
Loading…
Reference in New Issue