Commit Graph

41 Commits

Author SHA1 Message Date
Jeroen Bransen 925c2e9515
Update to TensorFlow 2.12 (#292)
* Fix compilation with tensorflow 2.12 and higher

* Update tensorflow submodule to 2.12.0

* Update Dockerfiles to 2.12.0
2023-08-14 20:36:35 -07:00
Mathias Jean Johansen 30a12d7776 Fix broken URL to `TensorFlow.Core` docs. 2023-01-28 12:53:46 -08:00
Bart Schuurmans 66fb0ac625 Update Dockerfiles to 2.10.1 2023-01-23 17:17:47 -08:00
Bart Schuurmans ded944f06b Simplify stack --docker commands by specifying the image in stack.yaml 2023-01-19 23:55:22 -08:00
Bart Schuurmans b5e3a98870 Specify TensorFlow version (2.3.0) in Dockerfile 2023-01-19 23:55:22 -08:00
Bart Schuurmans ed445a76a4 Simplify Stack Nix integration
Let Stack generate the nix-shell internally instead of writing it
manually.
2023-01-19 23:12:24 -08:00
Jiyong Jung b1a8a0513d Updates the build badge path to the new location. 2021-02-08 20:58:37 -05:00
jcmartin 6b19e54722
Update to haddock files for tensorflow-0.3 package (TensorFlow 2.3.0). (#269)
* Update README to refer to 2.3.0-gpu.
* Remove old package documentation from haddock directory.
2020-11-13 12:21:27 -08:00
jcmartin 4d9d315fbd
Update Package Version Numbers (#268) 2020-11-11 09:21:35 -08:00
Greg Steuck 8cde4d6a27
Update stack version in README.md 2019-09-22 22:14:58 -07:00
Yorick 26eebce98f Upgrade to tensorflow 1.14.0 (#244)
* add curl, unzip, zlib1g-dev to dockerfiles
2019-07-15 23:16:58 +02:00
Greg Steuck 896a0d31f7
Added a link to CentOS installation instructions
FYI @subbyte
2019-02-28 19:55:34 -08:00
Christian Berentsen c978837cd3 Document use of nvidia docker version 2 (#208) 2018-08-17 16:48:13 -04:00
Matt Ludwigs 8a0be8ebb7 Update README link to point to the most recent release docs (#207) 2018-08-14 20:06:46 -07:00
Nicolas Mattia 8e1d85b5e5 Use stack's nix support (#168)
* Add stack --nix support

* Update README for nix shell
2018-05-24 19:33:15 -07:00
fkm3 96c3025171
Fix CI build badge (#181) 2018-04-10 19:32:53 -04:00
fkm3 3cd5184716
Update README.md 2018-04-09 16:29:32 -04:00
fkm3 760c067e89
Add tensorflow-haskell-deptyped example (#174)
https://github.com/tensorflow/haskell/issues/156
2018-01-17 13:31:23 -05:00
fkm3 e4b4c344ab Add a link to the project using dependent types for more type safety. 2017-12-21 17:24:19 -08:00
Chris Roth cbd607f4d6 Update Link to TensorFlow.Core (#167) 2017-11-11 17:01:52 -05:00
Christian Berentsen 5c11ce1f03 How to use GPU with stack, docker, nvidia-docker (#157) 2017-10-21 20:32:19 -04:00
Alan Yee 7e0ef4bcd3 Update README.md (#149)
Add license
2017-08-21 15:59:22 -04:00
Alan Yee 41f4c8a235 Change from OS X to macOS (#142)
* Update README.md

Update terminology to macOS.

Also rename install_osx_dependencies.sh to install_macos_dependencies.sh.
2017-07-20 13:17:50 -07:00
Divided By Zero 7817255c2b update readme for checking stack version (#143) 2017-07-17 09:04:15 -07:00
Sergey Mironov 423b34537e Add minimal support for NixOS buildsystem (#134) 2017-06-10 22:24:54 -07:00
Judah Jacobson afbcd1b772 Note that we require stack-1.4.0 or newer.
This requirement is due to #106 which added Cabal `custom-setup` clauses.
2017-06-02 22:29:40 -07:00
fkm3 0603a6987b Add Minimize module with gradient descent and adam implementations (#125) 2017-05-25 19:19:22 -07:00
Judah Jacobson d62c614695 Distinguish between "rendered" and "unrendered" Tensors. (#88)
Distinguish between "rendered" and "unrendered" Tensors.

There are now three types of `Tensor`:

- `Tensor Value a`: rendered value
- `Tensor Ref a`: rendered reference
- `Tensor Build a` : unrendered value

The extra bookkeeping makes it easier to track (and enforce) which tensors are
rendered or not.  For examples where this has been confusing in the past, see

With this change, pure ops look similar to before, returning `Tensor Build`
instead of `Tensor Value`.  "Stateful" (monadic) ops are unchanged.  For
example:

    add :: OneOf [..] t => Tensor v'1 t -> Tensor v'2 t -> Tensor Build t
    assign :: (MonadBuild m, TensorType t)
           => Tensor Ref t -> Tensor v'2 t -> m (Tensor Ref t)

The `gradients` function now requires that the variables over which it's
differentiating are pre-rendered:

    gradients :: (..., Rendered v2) => Tensor v1 a -> [Tensor v2 a]
              -> m [Tensor Value a]

(`Rendered v2` means that `v2` is either a `Ref` or a `Value`.)

Additionally, the implementation of `gradients` now takes care to render every
intermediate value when performing the reverse accumulation.  I suspect this
fixes an exponential blowup for complicated expressions.
2017-04-06 15:10:33 -07:00
Judah Jacobson 2c5c879037 Introduce a MonadBuild class, and remove `buildAnd`. (#83)
This change adds a class that both `Build` and `Session` are instances of:

    class MonadBuild m where
        build :: Build a -> m a

All stateful ops (generated and manually written) now have a signature that returns
an instance of `MonadBuild` (rather than just `Build`).  For example:

    assign_ :: (MonadBuild m, TensorType t)
            => Tensor Ref t -> Tensor v t -> m (Tensor Ref t)

This lets us remove a bunch of spurious calls to `build` in user code.  It also
lets us replace the pattern `buildAnd run foo` with the simpler pattern `foo >>= run`
(or `run =<< foo`, which is sometimes nicer when foo is a complicated expression).

I went ahead and deleted `buildAnd` altogether since it seems to lead to
confusion; in particular a few tests had `buildAnd run . pure` which is
actually equivalent to just `run`.
2017-03-18 12:08:53 -07:00
avctrh 7cc6a69866 Added installation script for OS X dependencies under tools/ (#80)
* consolidated OS X instructions to the shell script, removed step-by-step instructions from README.md
2017-03-09 16:54:24 -08:00
Greg Steuck 5414f197a1 Update to 1.0 release and newest proto-lens (#77)
* Update from rc to full 1.0 release.
* Switch to proto-lens 0.1.0.5.
2017-02-22 15:24:45 -08:00
Judah Jacobson dca49d8993 Update Mac build instructions. (#73)
- Use the prebuilt binaries/headers for TF 1.0rc.
- Add instructions and stack.yaml config for tensorflow-records's dependency on
  snappy.
2017-02-12 22:17:38 -08:00
Greg Steuck 72631cb9f3 Uprev to TF 1.0rc1. (#69)
* Download protoc and libtensorflow instead of running bazel.
* Explicitly set permissions of protoc.
2017-02-09 14:20:43 -08:00
Judah Jacobson 4b5a57152f Add instructions to download `protoc` for building on Mac. (#65) 2017-01-23 09:12:09 -08:00
fkm3 4fb68f3aa3 Add example to README + make haddock link more prominent (#60) 2017-01-16 20:44:45 -08:00
Judah Jacobson 5fa1d2ba8f Update OS X instructions (#42) to not require a separate ".so" file. (#44)
The right approach is to run `install_name_tool` on the library after renaming
its extension from ".so" to ".dylib".
2016-11-22 16:15:34 -08:00
Judah Jacobson eb7e78d60d Add instructions to symlink ".so" to ".dylib" on OS X (#42). (#43)
I'm not sure why, but in some cases it seems linking only works if *both* the
.so and the .dylib are present in /usr/local/lib.  This may be due to a quirk
of how Bazel builds the library, and/or how ghc/stack load the library.
2016-11-22 08:34:59 -08:00
Greg Steuck 9f2f4e2877 Fixed CI and added indicator. (#15)
* Sorted test names.

* Don't require a terminal to run tests.

Should resolve "the input device is not a TTY" problem with Jenkins.

* Added build indicator to README.md.

* Fixed up URL.
2016-10-28 18:08:32 -07:00
Judah Jacobson 54eddcc6bd Add instructions for building on Mac OS X. (#8)
* Add instructions for building on Mac OS X.
* Include /usr/local/lib directly in stack.yaml.
2016-10-26 11:13:42 -07:00
Greg Steuck 11fe77df7a Update README.md
Close #4
2016-10-25 09:53:35 -07:00
Greg Steuck 67690d1499 Initial commit 2016-10-24 19:26:42 +00:00