Hi,
I am trying to run the 01a_fastai_layers.ipynb notebook. But I am getting the following error, while running the fileds in Jupyter-lab.
error: Couldn't lookup symbols:
AD__$s14__lldb_expr_537FALayerP02__a1_B3_59E14callAsFunctiony6OutputQz5InputQzF_PUSRS14__lldb_expr_537FALayerRzl
AD__$s14__lldb_expr_537FALayerP02__a1_B3_59E14callAsFunctiony6OutputQz5InputQzF_PUSRS14__lldb_expr_537FALayerRzl
From the error log, I think there is some problem with the “callAsFunction” which is defined as an extension.
public extension FALayer {
@differentiable(vjp: callGrad)
func callAsFunction(_ input: Input) -> Output {
let activation = forward(input)
for d in delegates { d(activation) }
return activation
}
Is not being linked to the base protocol.
public protocol FALayer: Layer {
var delegates: [(Output) -> ()] { get set }
// FALayer's will implement this instead of `func call`.
@differentiable
func forward(_ input: Input) -> Output
associatedtype Input
associatedtype Output
}
Not sure how to fix this error. I tried to add the custom command line option to build it using the ** -enable-library-evolution** mode initally
%install-swiftpm-flags -enable-library-evolution
But looks like option (-enable-library-evolution) is not available in swiftpm-flags
I also tried to remove the @frozen options in the cells, but that didn’t help either. Not sure what I’m missing. Any inputs will be of great help
PS: here is my swift version and I am using the CPU only version of S4TF
swift --version
Swift version 5.2-dev
Target: x86_64-unknown-linux-gnu
Thanks