From f97a97003b70cecfdd028f132dacb9c3a1fcb72a Mon Sep 17 00:00:00 2001 From: Lizonghang <870644199@qq.com> Date: Mon, 7 Apr 2025 17:57:50 +0400 Subject: [PATCH] fix type convert --- common/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common.cpp b/common/common.cpp index a656aa00..704c7335 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1012,7 +1012,7 @@ static bool assign_layers_to_device( }; // get valid factors - std::vector valid_k = cparams.n_cycles > 0 ? std::vector{cparams.n_cycles} : find_factors(n_layer); + std::vector valid_k = cparams.n_cycles > 0 ? std::vector{static_cast(cparams.n_cycles)} : find_factors(n_layer); // assign devices to sets M1, M2, M3, and M4 // M1: devices running on macOS without Metal, and with insufficient memory