Skip to content

Commit a1b65e5

Browse files
committed
Refer to #119
1 parent 7bfb6b7 commit a1b65e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/HordeAd/Core/AstSimplify.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ import Unsafe.Coerce (unsafeCoerce)
7979

8080
import Data.Array.Nested (Replicate, type (++))
8181
import Data.Array.Nested qualified as Nested
82-
import Data.Array.Nested.Convert (shrFromShS, shxFromShS, withShsFromShR, withShsFromShX)
82+
import Data.Array.Nested.Convert
83+
(shrFromShS, shxFromShS, withShsFromShR, withShsFromShX)
8384
import Data.Array.Nested.Lemmas
8485
import Data.Array.Nested.Mixed.Shape
8586
import Data.Array.Nested.Permutation (DropLen, Perm (..), TakeLen, permInverse)
@@ -1546,6 +1547,8 @@ astIndexKnobsS knobs shn v0 ix@((:.$) @in1 @shm1 i1 rest1) =
15461547
-- create other (and non-simplified!) big terms and also uses astIsSmall,
15471548
-- so it's probably more efficient. Use this instead of tletIx
15481549
-- or design something even better.
1550+
--
1551+
-- See https://github.com/Mikolaj/horde-ad/issues/119.
15491552
shareIx :: AstSpan s
15501553
=> AstIxS AstMethodLet shm
15511554
-> (AstIxS AstMethodLet shm -> AstTensor AstMethodLet s y)

0 commit comments

Comments
 (0)