Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TensorFlow in Swift

Build Status

Swift for Tensorflow

This repository is the Swift Chapter for 简单粗暴TensorFlow | A Concise Handbook of TensorFlow

MNIST Example in Book: Open In Colab

Book Chapter: Tensorflow Handbook - Swift

USAGE

For those who had Swift installed

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

For those who had no Swift installed (Docker)

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:

  1. Docker parameters - hashicorp/nomad#1904 (comment)
  2. Docker Repo of zixia/swift - https://github.com/huan/docker-swift-tensorflow

TODO

RESOURCES

Videos

Author

Huan (李卓桓), Google Developers Expert in Machine Learning (ML GDE), zixia@zixia.net

profile for zixia at Stack Overflow, Q&A for professional and enthusiast programmers

Copyright & License

  • Code & Docs © 2018 - now Huan (李卓桓) <zixia@zixia.net>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

About

TensorFlow Handbook for Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published