You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run "stack ghci hasktorch" I get the following error:
/home/noah/src/package-sources/hasktorch/hasktorch/src/Torch/Typed/Tensor.hs:101:16: error:
• Expected kind ‘dtype’, but ‘Bool’ has kind ‘*’
• In the first argument of ‘ComputeDType’, namely ‘Bool’
In the type family declaration for ‘ComputeDType’
|
101 | ComputeDType Bool = D.Bool
| ^^^^
Failed, 42 modules loaded.
<no location info>: error:
Could not load module ‘Torch.Distributions.Bernoulli’
It is a member of the hidden package ‘hasktorch-0.2.0.0’.
You can run ‘:set -package hasktorch’ to expose it.
(Note: this unloads all the modules in the current scope.)
Loaded GHCi configuration from /tmp/haskell-stack-ghci/4fb18ce4/ghci-script
The text was updated successfully, but these errors were encountered:
$ stack repl examples:exe:autograd
Using main module:
1. Package examples, component examples:exe:autograd, with main-is file: /Users/abel/bin/src/hasktorch/examples/autograd/Main.hs.
Configuring GHCi with the following packages: examples.
GHCi, version 9.2.8: https://www.haskell.org/ghc/ :? for help
<command line>: cannot satisfy -package z-examples-z-static-mnist
(use -v for more information)
<<EXITS>>
I see that examples/examples.cabal has an internal library static-mnist, so maybe this is a problem that internal libraries aren't supported so well yet by the Haskell tooling?
When I run "stack ghci hasktorch" I get the following error:
The text was updated successfully, but these errors were encountered: