Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley committed Dec 6, 2023
1 parent b4d7ee9 commit 90733b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Tensor.idr
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ namespace S32
export partial
eval : PrimitiveRW dtype ty => Graph (Tensor shape dtype) -> IO (Literal shape ty)
eval x =
let (MkEnvN _ env, MkTensor n) = runState (MkEnvN 0 empty) x
in idris_crash "crashing with env: \{show env}"
-- runEitherT (run {dtype} n $ env) <&> \case
-- Right lit => lit
-- Left err => idris_crash (show err)
let (MkEnvN _ env, MkTensor n) = runState (MkEnvN 0 empty) x in
-- in idris_crash "crashing with env: \{show env}"
runEitherT (run {dtype} n $ env) <&> \case
Right lit => lit
Left err => idris_crash (show err)

||| A string representation of an unevaluated `Tensor`, detailing all enqueued Xla operations.
||| Useful for debugging.
Expand Down

0 comments on commit 90733b3

Please sign in to comment.