Hi TFLite team and friends,
I attached the error message below, which basically reports two types of errors. The first error is about data type. My model uses tf.int32 and I think the GPU APIs only accept tf.uint8 and tf.float32. I can easily address this error with changing type to uint8. However, I used tf.gather operator in my model. There are two problems with this operator: (1) it's not supported and (2) it only accepts tf.int32 and tf.int64 types. To address the problem, I tried to find the alternative op but I cannot find one supported for the required data type.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.wb/com.example.wb.MainActivity}: java.lang.IllegalArgumentException: Internal error: Failed to apply delegate: Following operations are not supported by GPU delegate: ADD: OP is supported, but tensor type isn't matched! GATHER: Operation is not supported. MUL: OP is supported, but tensor type isn't matched! RESHAPE: OP is supported, but tensor type isn't matched! No operations will run on the GPU, and all 372 operations will run on the CPU. ModifyGraphWithDelegate is disallowed when graph is immutable.
How could I resolve the problem? I was also thinking about create customized op in both Tensorflow (for model conversion) and TFLite. But I'd like to know if there is easier solution first.