Have you seen this error before in the SwiftAI repo, for notebook 3 on batch training? I’m relatively new to Swift4TF and do not know how to remedy the error. To be clear, I’ve only added 1 line to the nb, at the very top: %system git clone https://github.com/fastai/fastai_dev.git && mv fastai_dev/swift/* /content
To reduce API surface area, we’ve removed “method-style” differential operators in favor of keeping only top-level differential operators. “Method-style” differential operators were deprecated in a previous release, perhaps warnings don’t appear in Colab.
Things should work if you rewrite model.valueWithGradient { model in ... } with valueWithGradient(at: model) { model in ... }.