fix bug for int8 type input

pull/5338/head
cjh9368 5 years ago
parent 64ad8b235c
commit e80d1d1921

@ -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) {

Loading…
Cancel
Save