Convert filesystem path to std::string explicitly (#1672)

This commit is contained in:
Cheng
2024-12-07 20:10:06 -08:00
committed by GitHub
parent d92ea094f1
commit 7c10c93a1f
+1 -1
View File
@@ -11,7 +11,7 @@
using namespace mlx::core;
std::string get_temp_file(const std::string& name) {
return std::filesystem::temp_directory_path().append(name);
return std::filesystem::temp_directory_path().append(name).string();
}
TEST_CASE("test save_safetensors") {