Imported Upstream version 1.18.0
[platform/core/ml/nnfw.git] / compiler / luci / service / src / CircleTypeInferenceRule.cpp
index fade2cb..5f6d46f 100644 (file)
@@ -314,8 +314,7 @@ struct TypeInferenceAlgorithm final : public luci::CircleNodeVisitor<loco::DataT
     return input_type;
   }
 
-  // TODO support S16
-  loco::DataType visit(const luci::CircleQuantize *) final { return loco::DataType::U8; }
+  loco::DataType visit(const luci::CircleQuantize *node) final { return luci::dtype_get(node); }
 
   loco::DataType visit(const luci::CircleRange *node) final
   {