Using fast neural-style transfer models in iOS

It turns out that we'll have no problem using the fst_frozen_quantized.pb model file, generated in step 7, in an iOS app built with the TensorFlow-experimental pod as shown in Chapter 2, Classifying Images with Transfer Learning, but the pre-trained multi-style model file from the TensorFlow Magenta project, which we'll use in a later section of this chapter, won't load with the TensorFlow pod (as of January 2018)—it'll throw the following error when trying to load the multi-style model file:

Could not create TensorFlow Graph: Invalid argument: No OpKernel was registered to support Op 'Mul' with these attrs. Registered devices: [CPU], Registered kernels:  device='CPU'; T in [DT_FLOAT] [[Node: ...

Get Intelligent Mobile Projects with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.