use the correct type

This commit is contained in:
dc-dc-dc 2023-12-18 20:12:44 -05:00
parent 801c1ad3a4
commit dcfa2700f6

View File

@ -306,7 +306,7 @@ std::unordered_map<std::string, array> load_safetensor(
Dtype type = dtype_from_safetensor_str(dtype); Dtype type = dtype_from_safetensor_str(dtype);
auto loaded_array = array( auto loaded_array = array(
shape_vec, shape_vec,
float32, type,
std::make_unique<Load>( std::make_unique<Load>(
to_stream(s), to_stream(s),
in_stream, in_stream,