TensorFlow Handbook for Swift
APACHE-2.0 License
This repository is the Swift Chapter for TensorFlow | A Concise Handbook of TensorFlow
MNIST Example in Book:
Book Chapter: Tensorflow Handbook - Swift
If you had installed Swift locally, then you can run swift directly:
$ swift run
Downloading train-images-idx3-ubyte ...
Downloading train-labels-idx1-ubyte ...
Reading data.
Constructing data tensors.
Test Accuracy: 0.9116667
If you are using Windows, or Ubuntu 19 (Swift for Tensorflow only supports Mac & Ubuntu 18.04 at Aug 2019), then the only way which you can play with this repository is to use Docker.
# use `nvidia-docker` if you want to use GPU
docker run -ti --rm \
--privileged \
--userns=host \
-v "$(pwd)":/notebooks \
zixia/swift \
swift run
See:
zixia/swift
- https://github.com/huan/docker-swift-tensorflow
Huan (), Google Developers Expert in Machine Learning (ML GDE), [email protected]