This works when you just want to instanciate directly using that initializer. What however, if your class is derived from MPSCNNConvolution like in the and SlimMPSCNNConvolution class from the apple 2016 example. Then you are reqiured to call a designated initializer ? How to do that ?
class SlimMPSCNNConvolution: MPSCNNConvolution {
...
init(kernelWidth: UInt, kernelHeight: UInt, inputFeatureChannels: UInt, outputFeatureChannels: UInt, ... and so on...){
// some code to provide convDesc, w, and b
// compile time error here !!!!
super.init(device: device,
convolutionDescriptor: convDesc,
kernelWeights: w,
biasTerms: b,
flags: MPSCNNConvolutionFlags.none)
// some code after
}
...
}
Any solutions for this situation ? Thanks !