hollance / Forge

A neural network toolkit for Metal
MIT License
1.27k stars 172 forks source link

update to Xcode 9.4 #38

Closed suolemon closed 6 years ago

suolemon commented 6 years ago

Hi,There are two problems come up when update to Xcode 9.4. Layers.swift has one error :Type of expression is ambiguous without more context

conv = MPSCNNConvolution(device: device,
                             convolutionDescriptor: desc,
                             kernelWeights: weights.pointer,
                             biasTerms: biases?.pointer,
                             flags: .none)

and in file LayerHelpers.swift has the same error in the following line.

  let layer = MPSCNNConvolution(device: device,
                                convolutionDescriptor: desc,
                                kernelWeights: weightsData.pointer,
                                biasTerms: biasData?.pointer,
                                flags: .none)
hollance commented 6 years ago

Are you using the latest version of Forge? (Note that this project is no longer being supported by me.)

suolemon commented 6 years ago

Yes,I’m using the latest version of Forge in my project. And I run Forge in Xcode 9.4 there was no error occurred.But in my project ,it still showing errors about ‘ MPSCNNConvolution’ as 'Type of expression is ambiguous without more context'. Thanks.

hollance commented 6 years ago

You need to add the bridging header to your project as well as the header it includes.