doc-ai / tensorio-ios

Tensor/IO for iOS, with support for on-device inference and training with TensorFlow and TensorFlow Lite
Other
31 stars 10 forks source link

Suppress "OpKernel for unknown op" warnings #142

Open phildow opened 5 years ago

phildow commented 5 years ago

When loading a graph TensorFlow logs a number of these messages to the console:

OpKernel ('op: "StatelessRandomUniformInt" device_type: "CPU" constraint { name: "dtype" allowed_values { list { type: DT_INT32 } } } host_memory_arg: "shape" host_memory_arg: "seed" host_memory_arg: "minval" host_memory_arg: "maxval"') for unknown op: StatelessRandomUniformInt
phildow commented 5 years ago

Must set TF_CPP_MIN_LOG_LEVEL=3 as an environmental variable, either in the process prior to running the app or in the schema

phildow commented 3 years ago

Or just build with the kernels enabled. Took care of all the HashTable / HashTableV2 warnings with an upcoming release

phildow commented 3 years ago

Mostly addressed with updated builds that include the ops even if they somehow aren't being used