Can't compile Swift for TensorFlow quickly · Issue #15 · philipturner/swift-colab (original) (raw)
This repository was archived by the owner on Sep 21, 2024. It is now read-only.
This repository was archived by the owner on Sep 21, 2024. It is now read-only.
Description
The main reason I made the overhauls present in Swift-Colab 2.0 was so that in the future, I could run S4TF code without facing bottlenecks that make it virtually unusable. However, I am unable to compile S4TF for use in the interactive experience. This is after avoiding the problems described in #14.
The test notebook S4TF with TF 2.4 shows my effort to compile S4TF for use in the Swift interpreter. Even though that failed, I can technically compile it using %system
flags like in s4tf-on-colab-example-1.ipynb and add custom code to the test suite. But that isn't ergonomic or reproducible in any way.
Specifically, the debugger shows an error when I run the following code. Back in the swift-jupyter era, the TensorFlow
module was embedded in the toolchain. So the error below was likely never encountered.
import TensorFlow print(Tensor.self)
<Cell 1>:2:7: error: cannot find 'Tensor' in scope
print(Tensor<Float>.self)
^~~~~~