# Tensorflow lite opencl pull request

**URL:** <https://forums.imgtec.com/t/tensorflow-lite-opencl-pull-request/3663>\
**Category:** Uncategorized\
**Created:** [February 16, 2023, 2:51pm UTC](https://forums.imgtec.com/t/tensorflow-lite-opencl-pull-request/3663 "2023-02-16T14:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raman](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Raman](https://forums.imgtec.com/u/Raman)\
**Post date:** [February 16, 2023, 2:51pm UTC](https://forums.imgtec.com/t/tensorflow-lite-opencl-pull-request/3663/1 "2023-02-16T14:51:52Z")

</div>

Hi,  
I saw pull request to tflite opencl from PowerVR SWE. It was not accepted because uses not public builtin functions: \_\_builtin\_IMG\_dotF16\_m2k4n4\_accF32\_bt.

> <https://github.com/tensorflow/tensorflow/pull/56366>
>
> …generation.
> 
> The patch:
> \- Adds powervr gpu\_info
> \- On the new powervr gpu ge…neration, uses the fp16 matmul builtin for conv2d
> \- Uses better workgroup size and block size
> 
> We see 1.3 ~ 1.55 times speedup of inference time on IMG BXM-8-256 using our internal NN models.
> 
> benchmark\_model option: --use\_gpu=true --gpu\_backend=cl --gpu\_precision\_loss\_allowed=true

First question: can code from this CL used internally inside Google?  
Second: do you have plans to have public documentation for this builtin or make some extension that can be used?

Best regards,  
Raman Sarokin  
Google

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [February 17, 2023, 11:21am UTC](https://forums.imgtec.com/t/tensorflow-lite-opencl-pull-request/3663/2 "2023-02-17T11:21:01Z")

</div>

Hi, Raman.

Welcome to our forum!  
Sorry about that PR. We are looking into documenting (or making an extension as you suggested) so we can get this functionality accepted.  
Yes, Google can use this code as it was approved for public release.

Let me know if you have any other question. Hopefully we will update the PR shortly.

Best regards.

Carlos.

---

<div class="post-metadata">

**Author:** ![Raman](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Raman](https://forums.imgtec.com/u/Raman)\
**Post date:** [February 20, 2023, 8:27am UTC](https://forums.imgtec.com/t/tensorflow-lite-opencl-pull-request/3663/3 "2023-02-20T08:27:50Z")

</div>

Hi,  
Added PowerVR gpu info using your PR.

> <https://github.com/tensorflow/tensorflow/commit/2546bd4e7286ce71d9fb093e0dd8874bf8239202>
>
> https://github.com/tensorflow/tensorflow/pull/56366
> 
> PiperOrigin-RevId: 51092116…7

Best regards,  
Raman Sarokin
