Android GPU Delegate Error while using groups in Conv2d
@stellaly As the error message indicates, please call invoke on the same thread where the GPU delegate is created as noted [here](https://www.tensorflow.org/lite/performance/gpu#android) and use the latest version of TFLiteGPUDelegate.
Thank you! > @stellaly As the error message indicates, please call invoke on the same thread where the GPU delegate is created as noted [here](https://www.tensorflow.org/lite/performance/gpu#android) and use the latest version of TFLiteGPUDelegate. Thank you!

Of cource I call invoke on the same thread where the GPU delegate is created
Here is my Android code
```kotlin
        val modelloader = ModelLoader(context)
        
        val options = Interpreter.Options()
        options.addDelegate(GpuDelegate())
//        options.addDelegate(NnApiDelegate())

        val tflite = Interpreter(modelloader.loadMappedFile("model/tf_test.tflite"), options)
        val inputShape0 = tflite.getInputTensorFromSignature("x", "compress_stage0").shape()
        val inputShape1 = tflite.getInputTensorFromSignature("lambda_rd", "compress_stage0").shape()
        
        val inputTensor0 = TensorBuffer.createFixedSize(
            inputShape0, DataType.FLOAT32
        )
        val inputTensor1 = TensorBuffer.createFixedSize(
            inputShape1, DataType.FLOAT32
        )

        val outputTensor = TensorBuffer.createFixedSize(
            tflite.getOutputTensorFromSignature("output_0", "compress_stage0").shape(),
            DataType.FLOAT32
        )

        val inputsMap = mapOf("x" to inputTensor0.buffer, "lambda_rd" to inputTensor1.buffer)
        val outputsMap = mapOf("output_0" to outputTensor.buffer)
        tflite.runSignature(
            inputsMap,
            outputsMap,
            "compress_stage0"
        )
``` Hi @stellaly 

Can you please specify which version of TFLite you are using?

For Android 12 and above , please add the following lines in manifest file to detect GPU and let us know if it resolves the issue.

```
<uses-library android:name="libOpenCL.so"
           android:required="false"/>

<uses-library android:name="libOpenCL-pixel.so"
           android:required="false"/>
```
Thanks. This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.
**System information**
- Android 13:
- TensorFlow installed from binary:
 
**use GPU Delegate**

**use model**

```python
        self.g_a0 = tf.keras.layers.Conv2D(
            N,
            kernel_size=5,
            strides=2,
            padding="same",
            # data_format="channels_first",
        )
        self.g_a1_test1 = tf.keras.layers.Conv2D(
            N,
            3,
            padding="same",
            groups=N,
            # data_format="channels_first",
        )
```
**error on android**
```
java.lang.IllegalArgumentException: Internal error: Failed to apply delegate: Can not open OpenCL library on this device - undefined symbol: clGetCommandBufferInfoKHR
Falling back to OpenGL
TfLiteGpuDelegate Init: No shader implementation for split
TfLiteGpuDelegate Prepare: delegate is not initialized
Node number 2 (TfLiteGpuDelegateV2) failed to prepare.
Restored original execution plan after delegate application failure.
```


**use anothor model**

```python
        self.g_a0 = tf.keras.layers.Conv2D(
            N,
            kernel_size=5,
            strides=2,
            padding="same",
            # data_format="channels_first",
        )
        self.g_a1_test1 = tf.keras.layers.Conv2D(
            N,
            3,
            padding="same",
            # groups=N,
            # data_format="channels_first",
        )
```
No errors on Android