mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 20:46:46 +08:00
use the correct type
This commit is contained in:
parent
801c1ad3a4
commit
dcfa2700f6
@ -306,7 +306,7 @@ std::unordered_map<std::string, array> load_safetensor(
|
||||
Dtype type = dtype_from_safetensor_str(dtype);
|
||||
auto loaded_array = array(
|
||||
shape_vec,
|
||||
float32,
|
||||
type,
|
||||
std::make_unique<Load>(
|
||||
to_stream(s),
|
||||
in_stream,
|
||||
|
Loading…
Reference in New Issue
Block a user