mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 20:38:07 +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);
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user