From a6cca3cbb73f6c4eee0b01b4cc58ac47f6c297fc Mon Sep 17 00:00:00 2001 From: Doru Bercea Date: Thu, 19 Dec 2019 19:51:01 -0500 Subject: [PATCH] Code clean-up. --- src/builder/frontend_dialect_transformer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/builder/frontend_dialect_transformer.cpp b/src/builder/frontend_dialect_transformer.cpp index 0821b81..42e7085 100644 --- a/src/builder/frontend_dialect_transformer.cpp +++ b/src/builder/frontend_dialect_transformer.cpp @@ -116,7 +116,7 @@ class FrontendGenImpl { // Convert type to MLIR type. // A complete list of types can be found in: - // /third_party/onnx/onnx/onnx.pb.h + // /third_party/onnx/onnx/onnx.pb.h mlir::Type TypeConvert(onnx::TensorProto_DataType intype) { switch (intype) { case onnx::TensorProto_DataType::TensorProto_DataType_FLOAT16: @@ -143,7 +143,6 @@ class FrontendGenImpl { case onnx::TensorProto_DataType::TensorProto_DataType_COMPLEX64: case onnx::TensorProto_DataType::TensorProto_DataType_COMPLEX128: case onnx::TensorProto_DataType::TensorProto_DataType_UNDEFINED: - DLC_REQUIRE_MSG_CTX(false, "Unsupported data type encountered."); return nullptr; } }