https://github.com/rxwei/swift-tutorials
https://github.com/rxwei/swift-tutorials
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rxwei/swift-tutorials
- Owner: rxwei
- License: apache-2.0
- Created: 2018-09-06T02:22:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-06T05:05:26.000Z (over 7 years ago)
- Last Synced: 2025-04-29T18:50:46.751Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 310 KB
- Stars: 3
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift Tutorials
This repository contains Jupyter notebooks demonstrating TensorFlow in Swift.
# How to run
## Docker
1. `docker run -t -i -p 8888:8888 --cap-add SYS_PTRACE gcr.io/swift-tensorflow/jupyter`
2. 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)` with `127.0.0.1`.
3. In Jupyter, navigate to `swift-tutorials/iris/swift_tensorflow_tutorial.ipynb`.
If you are curious, the [Dockerfile is in the swift-jupyter
repository](https://github.com/google/swift-jupyter/tree/master/docker).
## Manual installation
### Requirements
* 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.
### Installation
Install the swift-jupyter kernel by following the "Installation Instructions
With TensorFlow toolchain" in the
[swift-jupyter readme](https://github.com/google/swift-jupyter). The tutorial
requires a toolchain build from September 10, 2018 or later.
### Running
Put this repository in the directory where you run `jupyter notebook`, and then
open `iris/swift_tensorflow_tutorial.ipynb` in Jupyter.