forked from mindspore-Ecosystem/mindspore
fix 910 memory size of GetInputInfo
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
parent
a2aea8cba5
commit
d6fad5a0b3
|
@ -220,7 +220,7 @@ Status MsGraphImpl::GetInputsInfo(std::vector<std::string> *names, std::vector<s
|
|||
PushbackIfNotNull(names, input_names_[i]);
|
||||
PushbackIfNotNull(shapes, tensor->shape());
|
||||
PushbackIfNotNull(data_types, TransTypeId2InferDataType(tensor->data_type()));
|
||||
PushbackIfNotNull(mem_sizes, tensor->DataSize());
|
||||
PushbackIfNotNull(mem_sizes, tensor->Size());
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
@ -244,7 +244,7 @@ Status MsGraphImpl::GetOutputsInfo(std::vector<std::string> *names, std::vector<
|
|||
PushbackIfNotNull(names, output_names_[i]);
|
||||
PushbackIfNotNull(shapes, tensor->shape());
|
||||
PushbackIfNotNull(data_types, TransTypeId2InferDataType(tensor->data_type()));
|
||||
PushbackIfNotNull(mem_sizes, tensor->DataSize());
|
||||
PushbackIfNotNull(mem_sizes, tensor->Size());
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue