Skip to content

Commit 44390bd

Browse files
authored
Bump (#869)
* bump * fix none in a few ops
1 parent 2225374 commit 44390bd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ option(MLX_BUILD_METAL "Build metal backend" ON)
1818
option(BUILD_SHARED_LIBS "Build mlx as a shared library" OFF)
1919

2020
if(NOT MLX_VERSION)
21-
set(MLX_VERSION 0.7.0)
21+
set(MLX_VERSION 0.8.0)
2222
endif()
2323

2424
# --------------------- Processor tests -------------------------

python/src/ops.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ void init_ops(nb::module_& m) {
12611261
"start"_a,
12621262
"stop"_a,
12631263
"num"_a = 50,
1264-
"dtype"_a = float32,
1264+
"dtype"_a.none() = float32,
12651265
"stream"_a = nb::none(),
12661266
nb::sig(
12671267
"def linspace(start, stop, num: Optional[int] = 50, dtype: Optional[Dtype] = float32, stream: Union[None, Stream, Device] = None) -> array"),
@@ -1396,7 +1396,7 @@ void init_ops(nb::module_& m) {
13961396
}
13971397
},
13981398
"shape"_a,
1399-
"dtype"_a = float32,
1399+
"dtype"_a.none() = float32,
14001400
nb::kw_only(),
14011401
"stream"_a = nb::none(),
14021402
nb::sig(
@@ -1442,7 +1442,7 @@ void init_ops(nb::module_& m) {
14421442
}
14431443
},
14441444
"shape"_a,
1445-
"dtype"_a = float32,
1445+
"dtype"_a.none() = float32,
14461446
nb::kw_only(),
14471447
"stream"_a = nb::none(),
14481448
nb::sig(
@@ -1487,7 +1487,7 @@ void init_ops(nb::module_& m) {
14871487
"n"_a,
14881488
"m"_a = nb::none(),
14891489
"k"_a = 0,
1490-
"dtype"_a = float32,
1490+
"dtype"_a.none() = float32,
14911491
nb::kw_only(),
14921492
"stream"_a = nb::none(),
14931493
nb::sig(
@@ -1511,7 +1511,7 @@ void init_ops(nb::module_& m) {
15111511
return identity(n, dtype.value_or(float32), s);
15121512
},
15131513
"n"_a,
1514-
"dtype"_a = float32,
1514+
"dtype"_a.none() = float32,
15151515
nb::kw_only(),
15161516
"stream"_a = nb::none(),
15171517
nb::sig(
@@ -1539,7 +1539,7 @@ void init_ops(nb::module_& m) {
15391539
"n"_a,
15401540
"m"_a = nb::none(),
15411541
"k"_a = 0,
1542-
"dtype"_a = float32,
1542+
"dtype"_a.none() = float32,
15431543
nb::kw_only(),
15441544
"stream"_a = nb::none(),
15451545
nb::sig(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def run(self) -> None:
154154

155155
setup(
156156
name="mlx",
157-
version=get_version("0.7.0"),
157+
version=get_version("0.8.0"),
158158
author="MLX Contributors",
159159
author_email="[email protected]",
160160
description="A framework for machine learning on Apple silicon.",

0 commit comments

Comments
 (0)