This repository contains Jupyter notebooks demonstrating TensorFlow in Swift.
docker run -t -i -p 8888:8888 --cap-add SYS_PTRACE gcr.io/swift-tensorflow/jupyter- It should print out a URL. Open it in your browser. You may have to fix up
the URL by replacing
(xxxxxxxxxxx or 127.0.0.1)with127.0.0.1. - In Jupyter, navigate to
swift-tutorials/iris/swift_tensorflow_tutorial.ipynb.
If you are curious, the Dockerfile is in the swift-jupyter repository.
- macOS 10.13.5 or later, with Xcode 10.0 beta or later; OR
- Ubuntu 16.04 (64-bit); OR
- other operating systems may work, but you will have to build Swift from sources.
Install the swift-jupyter kernel by following the "Installation Instructions With TensorFlow toolchain" in the swift-jupyter readme. The tutorial requires a toolchain build from September 10, 2018 or later.
Put this repository in the directory where you run jupyter notebook, and then
open iris/swift_tensorflow_tutorial.ipynb in Jupyter.