xmartlabs / Bender

Easily craft fast Neural Networks on iOS! Use TensorFlow models. Metal under the hood.
https://xmartlabs.github.io/Bender/
MIT License
1.79k stars 90 forks source link

Can't compile with Xcode 9.3, iOS 11.3 #103

Closed mdlockyer closed 6 years ago

mdlockyer commented 6 years ago

After installing from the cocopod, I get this error on iOS 11.3, Xcode 9.3. Bender version 0.4.1

Type of expression is ambiguous without more context

It appears in the Convolution layer, as well as the DepthwiseConvolution.

Convolution.swift: line 114

screen shot 2018-04-07 at 4 42 39 pm

and again in DepthwiseConvolution.swift: line 41

screen shot 2018-04-07 at 4 43 25 pm

Any ideas on how to get this working?

mats-claassen commented 6 years ago

Yes iOS 11.3 removed that initializer. We are working on it. Trying to migrate to init(device: MTLDevice, weights: MPSCNNConvolutionDataSource)

mdlockyer commented 6 years ago

Gotcha. That’s pretty much what I figured. I’ve been playing around with the MPSCNNConvolutionDataSource as well. Thanks for the input!

mats-claassen commented 6 years ago

You can try it on master now

mdlockyer commented 6 years ago

Will try it tomorrow afternoon and report back. Thanks man!