I am working on doing CNN output for MNIST on iOS. For starters, there's a good sample of code from Apple. https://developer.apple.com/library/content/samplecode/MPSCNNHelloWorld/Introduction/Intro.html#//apple_ref/doc/uid/TP40017482-Intro-DontLinkElementID_2
However, when I tried to implement a much complex CNN model (e.g. https://github.com/fchollet/keras/blob/master/examples/mnist_cnn.py ) using MPS, I found that there was no class for the Flatten filter "
I looked through the MPS structure to find a function to change or change the dimension, but I could not find the correct one. (e.g. MPSImageConversion is presented only for color conversion, but not for measurement.
MPSImageConversion
If someone knows a filter for Flatten or how to convert a multidimensional image to a one-dimensional image, let me know.
A Flatten layer is not required because the MPS can process multidimensional data as input.
Source: https://habr.com/ru/post/1012669/More articles:Google Maps iOS SDK some cards loaded in green transparent color - iosAdd CNTK virtualenv to Visual Studio Python project - pythonHow to use component variable in css / style tag in Angular 2? - cssSbt when Ubuntu 16.04 installation fails - installinterpolation to css class in external angular 2 file - cssCan a WindowBackground be placed below the status bar and above the navigation bar? - androidazure with nuget packages that have different versions of the same dependency - dependenciesSplitting a string into an array of n words - javascriptCan I set the SwipeRefreshLayout color scheme in XML? - javaMIPS: Why do we load bytes when we already have a boot word? - assemblyAll Articles