Skip to content

Commit 2e38b84

Browse files
committed
Clarify non-accumulating FMA. Prepare for release 0.5.2
Signed-off-by: Lukasz Stafiniak <lukstafi@gmail.com>
1 parent 9f68170 commit 2e38b84

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

CHANGES.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
- Lots of new primitive ops:
66
- Unary: Satur01 | Exp | Log | Exp2 | Log2 | Sin | Cos | Sqrt | Recip | Recip_sqrt | Neg | Tanh_approx | Not
77
- Binary: Satur01_gate | Max | Min | Mod | Cmplt | Cmpeq | Cmpne
8-
- Ternary: Where | FMA
9-
- TODO: ternary Mul_acc
8+
- Ternary: Where | FMA (non-accumulating)
109
- Ternary tensor operations.
1110
- A differentiable `where` operation.
1211
- More flexible gradient construction via the `%cd` syntax (better projections inference).
@@ -25,7 +24,7 @@
2524
### Fixed
2625

2726
- Numbers text rendering (consistent across OSes).
28-
27+
- Moved closing row variables to stage 3, because stage 2 may need to process inequalities generating more LUBs.
2928

3029
## [0.5.1] -- 2025-01-01
3130

arrayjit.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.5.1"
3+
version: "0.5.2"
44
synopsis:
55
"An array language compiler with multiple backends (CPU, CUDA), staged compilation"
66
description:
@@ -14,7 +14,7 @@ doc: "https://github.com/lukstafi/ocannl/blob/master/README.md"
1414
bug-reports: "https://github.com/lukstafi/ocannl/issues"
1515
depends: [
1616
"ocaml" {>= "5.2.0"}
17-
"dune" {>= "3.11"}
17+
"dune" {>= "3.16"}
1818
"base" {>= "v0.17.0"}
1919
"ctypes" {>= "0.23"}
2020
"ctypes-foreign" {>= "0.23"}

arrayjit/lib/ops.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ type unop =
174174
| Not (** 0. -> 1. | _ -> 0. *)
175175
[@@deriving sexp, compare, equal]
176176

177-
type ternop = Where (** Where(a,b,c): if a then b else c *) | FMA (** FMA(a,b,c): (a * b) + c *)
177+
type ternop =
178+
| Where (** Where(a,b,c): if a then b else c *)
179+
| FMA (** FMA(a,b,c): (a * b) + c, non-accumulating *)
178180
[@@deriving sexp, compare, equal]
179181

180182
type op = Ternop of ternop | Binop of binop | Unop of unop [@@deriving sexp, compare, equal]

dune-project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
(lang dune 3.11)
1+
(lang dune 3.16)
22

33
(using ctypes 0.3)
44

55
(name ocannl)
66

7-
(version 0.5.1)
7+
(version 0.5.2)
88

99
(generate_opam_files true)
1010

neural_nets_lib.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.5.1"
3+
version: "0.5.2"
44
synopsis:
55
"A from-scratch Deep Learning framework with an optimizing compiler, shape inference, concise syntax"
66
description:
@@ -14,7 +14,7 @@ doc: "https://github.com/lukstafi/ocannl/blob/master/README.md"
1414
bug-reports: "https://github.com/lukstafi/ocannl/issues"
1515
depends: [
1616
"ocaml" {>= "5.2.0"}
17-
"dune" {>= "3.11"}
17+
"dune" {>= "3.16"}
1818
"base" {>= "v0.17.0"}
1919
"arrayjit" {>= "0.5.1"}
2020
"printbox" {>= "0.12"}

0 commit comments

Comments
 (0)