Skip to content

Commit 47e9237

Browse files
committed
format
1 parent 9270d9d commit 47e9237

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/mtmd/clip.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,12 @@ struct clip_ctx {
385385
throw std::runtime_error("failed to initialize CPU backend");
386386
}
387387
backend = nullptr;
388-
if(ctx_params.use_gpu) {
388+
if (ctx_params.use_gpu) {
389389
auto backend_name = std::getenv("MTMD_BACKEND_DEVICE");
390-
if(backend_name != nullptr) {
390+
if (backend_name != nullptr) {
391391
backend = ggml_backend_init_by_name(backend_name, nullptr);
392392
}
393-
if(!backend){
393+
if (!backend) {
394394
backend = ggml_backend_init_by_type(GGML_BACKEND_DEVICE_TYPE_GPU, nullptr);
395395
}
396396
}

0 commit comments

Comments
 (0)