Skip to content

Commit 6ce1559

Browse files
committed
Improve dtype check readability in OrtBackend
1 parent b43fa49 commit 6ce1559

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backends/ort/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ impl OrtBackend {
2121
model_type: ModelType,
2222
) -> Result<Self, BackendError> {
2323
// Check dtype
24-
if dtype == "float32" {
25-
} else {
24+
if dtype != "float32" {
2625
return Err(BackendError::Start(format!(
2726
"DType {dtype} is not supported"
2827
)));

0 commit comments

Comments
 (0)