Skip to content

Models and examples built with Swift for TensorFlow

License

Notifications You must be signed in to change notification settings

leoxzhao/swift-models

 
 

Repository files navigation

Swift for TensorFlow Models

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.

macOS Troubleshooting

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

Bugs

Please report model-related bugs and feature requests using GitHub issues in this repository.

Community

Discussion about Swift for TensorFlow happens on the swift@tensorflow.org mailing list.

Contributing

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.

Code of Conduct

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.

About

Models and examples built with Swift for TensorFlow

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 97.9%
  • Python 1.9%
  • Shell 0.2%