Skip to content

Commit

Permalink
[add-acc]Add primitive ast nodes to compiled impl
Browse files Browse the repository at this point in the history
  • Loading branch information
DarshalShetty committed Sep 14, 2024
1 parent 8b1827c commit 7d16ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accelerated-tensors/autodiff/B-prims.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
(λ (ρ-fn ra rb shape-fn)
(let* ((in-shape-a (flat-shape ra))
(in-size-a (size-of in-shape-a))
(in-shape-b (flat-shape ra))
(in-shape-b (flat-shape rb))
(in-size-b (size-of in-shape-b))
(out-shape (shape-fn in-shape-a in-shape-b))
(out-size (size-of out-shape)))
Expand All @@ -202,7 +202,7 @@
(λ (∇-fn ra rb z shape-fn)
(let* ((in-shape-a (flat-shape ra))
(in-size-a (size-of in-shape-a))
(in-shape-b (flat-shape ra))
(in-shape-b (flat-shape rb))
(in-size-b (size-of in-shape-b))
(out-shape (shape-fn in-shape-a in-shape-b))
(out-size (size-of out-shape)))
Expand Down

0 comments on commit 7d16ce3

Please sign in to comment.