Skip to content

Commit

Permalink
fix!
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj committed Nov 16, 2024
1 parent 70ff615 commit 4d8a350
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/HordeAd/Core/AstSimplify.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ astTransposeS perm t = case perm of
:: Permutation.PermutePrefix perm3 sh2
:~: Permutation.PermutePrefix perm sh) $
case compare (length perm3V)
(Nested.Internal.Shape.shsSize (knownShS @sh2)) of
(Nested.Internal.Shape.shsLength (knownShS @sh2)) of
LT -> gcastWith (unsafeCoerce Refl
:: Compare (Rank perm3) (Rank sh2) :~: LT) $
astTransposeS perm3 u
Expand Down
4 changes: 2 additions & 2 deletions src/HordeAd/Core/AstTools.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ shapeAstFull t = case t of
AstReverseS{} -> FTKS knownShS
AstTransposeS @perm @sh2 perm _v ->
withShapeP
(permutePrefixList (Permutation.permToList' perm)
(shapeT @sh2)) $ \(Proxy @sh2Perm) ->
(backpermutePrefixList (Permutation.permToList' perm)
(shapeT @sh2)) $ \(Proxy @sh2Perm) ->
gcastWith (unsafeCoerce Refl :: sh2Perm :~: Permutation.PermutePrefix perm sh2) $
FTKS knownShS
AstReshapeS{} -> FTKS knownShS
Expand Down
4 changes: 2 additions & 2 deletions src/HordeAd/Core/Delta.hs
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,8 @@ shapeDeltaFull = \case
ReverseS{} -> FTKS knownShS
TransposeS @perm @sh2 perm _v ->
withShapeP
(permutePrefixList (Permutation.permToList' perm)
(shapeT @sh2)) $ \(Proxy @sh2Perm) ->
(backpermutePrefixList (Permutation.permToList' perm)
(shapeT @sh2)) $ \(Proxy @sh2Perm) ->
gcastWith (unsafeCoerce Refl :: sh2Perm :~: Permutation.PermutePrefix perm sh2) $
FTKS knownShS
ReshapeS{} -> FTKS knownShS
Expand Down

0 comments on commit 4d8a350

Please sign in to comment.