This repository contains TensorFlow models written in Swift.
The stable
branch works with the latest Swift for TensorFlow prebuilt packages.
Actual development occurs on the master
branch.
As new packages are released, master
is pushed to stable
.
For general information about Swift for TensorFlow development, please visit tensorflow/swift.
If you see TensorFlow not found
when building samples from command line or
<unknown>:0: error: cannot load underlying module for 'Darwin'
<unknown>:0: note: did you forget to set an SDK using -sdk or SDKROOT?
<unknown>:0: note: use "xcrun swiftc" to select the default macOS SDK installed with Xcode
make sure you've added the correct version of swift
to your path.
eg.
which swift
/usr/bin/swift # This is the wrong path!
The swift binary should be referencing the most updated toolchain bin path eg.
export PATH="/Library/Developer/Toolchains/swift-latest/usr/bin/:$PATH"
which swift
/Library/Developer/Toolchains/swift-latest/usr/bin/swift
Please report model-related bugs and feature requests using GitHub issues in this repository.
Discussion about Swift for TensorFlow happens on the swift@tensorflow.org mailing list.
We welcome contributions: please read the Contributor Guide to get started. It's always a good idea to discuss your plans on the mailing list before making any major submissions.
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
The Swift for TensorFlow community is guided by our Code of Conduct, which we encourage everybody to read before participating.