I've created a Docker image to allow users on any OS to easily play around with Swift for TensorFlow without worrying about interfering with any existing Swift/Xcode installations or worrying about dependencies.
You can drop into the Swift + TensorFlow REPL with the following single command, provided you've got docker installed:
docker run --privileged --cap-add sys_ptrace -it --rm zachgrayio/swift-tensorflow-repl
From here, you can begin entering swift code and import and use TensorFlow! There's usage guides in the official repo, as well as in the dockerfile repo - it's here if you're curious: https://github.com/zachgrayio/swift-tensorflow-repl