Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley committed Oct 15, 2024
1 parent 4b14971 commit a1c456f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/runner/Unit/TestTensor.idr
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ evalTuple @{device} = property $ do

evalTupleNonTrivial : Device => Property
evalTupleNonTrivial @{device} = property $ do
let xs : Tag _ =
do let y0 = tensor [1.0, -2.0, 0.4]
y1 = tensor 3.0
u <- tag $ exp y0
let v = slice [at 1] u + y1
w = slice [0.to 2] u
pure [v, w]
let xs : Tag _ = do
let y0 = tensor [1.0, -2.0, 0.4]
y1 = tensor 3.0
u <- tag $ exp y0
let v = slice [at 1] u + y1
w = slice [0.to 2] u
pure [v, w]

[v, w] = unsafePerformIO $ eval device xs

Expand Down

0 comments on commit a1c456f

Please sign in to comment.