Skip to content

Commit 8e2cc75

Browse files
authored
Merge pull request #4667 from PaddlePaddle/reyoung-patch-1
Removed unreached code
2 parents 0d017d9 + 32cb74b commit 8e2cc75

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

paddle/framework/data_type.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ inline DataType ToDataType(std::type_index type) {
2828
return DataType::INT32;
2929
} else {
3030
PADDLE_THROW("Not supported");
31-
return static_cast<DataType>(-1);
3231
}
3332
}
3433

0 commit comments

Comments
 (0)