reneweb / react-native-tensorflow

A TensorFlow inference library for react native
Apache License 2.0
358 stars 59 forks source link

Error: Could not create TensorFlow Graph: Invalid argument: No OpKernel was registered to support Op 'Switch' with these attrs. #32

Closed narensprinter closed 5 years ago

narensprinter commented 6 years ago

Hi

While using TfImageRecognition I'm getting following error

Error: Could not create TensorFlow Graph: Invalid argument: No OpKernel was registered to support Op 'Switch' with these attrs.

But if i test the model with demo pb file provided by react-native-tensorflow examples its working fine.

reneweb commented 5 years ago

sorry for late reply - the model you are using is probably not compatible with the Tensorflow version used in this lib which is unfortunately pretty outdated: https://github.com/reneweb/react-native-tensorflow/issues/26