This is the code of my Swift for TensorFlow talk on @Swift Conf 2018.
The repo contains two examples.
install latest Swift for TensorFlow toolchain from: https://github.com/tensorflow/swift/blob/master/Installation.md
swift -O LC.swift
swift -O CF.swift
You can check the keynote of the talk for more information.