Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Initial support for Google Colaboratory #1192

Closed
wants to merge 42 commits into from

Conversation

philipturner
Copy link

Allows the head branch of Swift for TensorFlow to execute Swift package tests in a Google Colab environment. This means using the old TF 2.4 binary, which is slightly API-incompatible with TF 2.9. Some operators in the _Raw namespace will cause a runtime crash (outlined) below, although nothing in the public API should crash, unless it is deprecated (like Dataset).

  • Operators with the metadata parameter. One example is _Raw.tensorSliceDataset, which was used in Swift package tests. To work around this, add -Xswiftc -DFALLBACK_X10_BINARY when running tests on the old X10 binary.
  • Operators whose generic parameter constraints changed when upgrading raw bindings to TF 2.9. Several ops upgraded from TensorFlowIndex (Int32 and Int64) to TensorFlowInteger (all Swift integer types).

@philipturner
Copy link
Author

This was an accident. I meant to make the PR to s4tf/s4tf:main.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants