Skip to content

Commit 84f23d1

Browse files
committed
add missed {}
1 parent 7f8ca9a commit 84f23d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backends/cuda/runtime/cuda_backend.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ class ET_EXPERIMENTAL CudaBackend final
303303
Error,
304304
"Option %s must be a boolean.",
305305
kWeightSharingAcrossMethods);
306+
return Error::InvalidArgument;
307+
}
306308
} else if (std::strcmp(option.key, kEnableCudaGraphForMethod) == 0) {
307309
if (auto* val = std::get_if<std::array<char, kMaxOptionValueLength>>(
308310
&option.value)) {

0 commit comments

Comments
 (0)