提交 acafe51a 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!5338 fix bug for int8 input

Merge pull request !5338 from cjh9368/aware_quant
......@@ -56,7 +56,7 @@ STATUS DTypeTransPass::DoModelInputDTypeTrans(schema::MetaGraphT *graph) {
for (auto graphInIdx : graphInIdxes) {
MS_ASSERT(graph->allTensors.size() > graphInIdx);
auto &graphInTensor = graph->allTensors.at(graphInIdx);
graphInTensor->dataType = TypeId::kNumberTypeUInt8;
graphInTensor->dataType = TypeId::kNumberTypeInt8;
}
if (this->inputDataDType == TypeId::kNumberTypeInt8) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册