Code clean-up.

This commit is contained in:
Doru Bercea 2019-12-19 19:51:01 -05:00
parent a9960f6e44
commit a6cca3cbb7
1 changed files with 1 additions and 2 deletions

View File

@ -116,7 +116,7 @@ class FrontendGenImpl {
// Convert type to MLIR type. // Convert type to MLIR type.
// A complete list of types can be found in: // A complete list of types can be found in:
// <dlc-build-folder>/third_party/onnx/onnx/onnx.pb.h // <onnf-build-folder>/third_party/onnx/onnx/onnx.pb.h
mlir::Type TypeConvert(onnx::TensorProto_DataType intype) { mlir::Type TypeConvert(onnx::TensorProto_DataType intype) {
switch (intype) { switch (intype) {
case onnx::TensorProto_DataType::TensorProto_DataType_FLOAT16: 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_COMPLEX64:
case onnx::TensorProto_DataType::TensorProto_DataType_COMPLEX128: case onnx::TensorProto_DataType::TensorProto_DataType_COMPLEX128:
case onnx::TensorProto_DataType::TensorProto_DataType_UNDEFINED: case onnx::TensorProto_DataType::TensorProto_DataType_UNDEFINED:
DLC_REQUIRE_MSG_CTX(false, "Unsupported data type encountered.");
return nullptr; return nullptr;
} }
} }