Open KiaraGrouwstra opened 4 years ago
aside from my issues on the remote machine (#24), trying to run tensorflow/haskell
locally:
stack --docker --docker-image=tensorflow/haskell:v0 setup
-- to make it find Tensorflow C lib use the extra-lib-dirs
and extra-include-dirs
from their stack.yaml
.docker run -v $PWD:/app -ti synthesis-mount stack --allow-different-user build
runs, but I'll need to either cram the deps in base images, mount (below) or face rebuilding from scratch each runs.shell.nix
(vars) and maybe bits from their Stack yamls.potential alternative: hasktorch
:
cabal-hasktorch
branch, now errors with Constraint refers to an unknown package: libtorch-ffi ==1.4.0.0
pip3 install --user pyyaml typing
+ source setenv
+ build HaskTorch using with-gcc: /usr/bin/gcc-8
over Arch's 9, then stack build
. then hasktorch-ffi-th
errors with Missing (or bad) C library: ATen
, implying something is up with my Torch binaries. yay pytorch
did not fix.stack.yaml
's extra-lib-dirs:
- deps/libtorch/lib
. somehow even using an absolute path /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/lib
that doesn't seem to do it from my repo tho?
fish-compatible source setenv
alternative:
set HASKTORCH_LIB_PATH "/run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/lib/:/run/media/kiara/meltan/downloads/repos/hasktorch/deps/mklml/lib/"
set LD_LIBRARY_PATH "$HASKTORCH_LIB_PATH:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
as dep:
Unsupported tarball from https://github.com/hasktorch/hasktorch/archive/99545bb638430b321c03dcf79328ea27cd8a282a.tar.gz: Symbolic link dest not found from hasktorch-99545bb638430b321c03dcf79328ea27cd8a282a/spec/Declarations.yaml to ../deps/pytorch/build/aten/src/ATen/Declarations.yaml, looking for hasktorch-99545bb638430b321c03dcf79328ea27cd8a282a/deps/pytorch/build/aten/src/ATen/Declarations.yaml.
This may indicate that the source is a git archive which uses git-annex.
See https://github.com/commercialhaskell/stack/issues/4579 for further information.
that seems to match (1, 2) (unresolved). Stack does handle submodules fwiw.
after a pip3 install --user pyyaml typing installation works using gcc 8 over Arch's 9. 🎉 🎉
I'm glad! You can also rely on nix
setting you up. I'm using it on my NixOS box at home on a daily basis.
- [ ] generating datasets with fixed test setadd-on
io_feats
andtaskType
based on param type instance combomkCharMap
got updated to register characters used in types as well.exprType
on the functionmask
branchbenchmark
neuro-symbolic program synthesis
implement:
- [ ] add additional encoders- out of scopetest:
experiments go at #10.