Samediff code in Android device

Hello!I‘m trying to run some samediff code in an Android device. But i find that the function “calculateGradients” takes so long time to finish.It basically takes more than 20 minutes for this function to execute.I’m curious if this is normal, or if I’m just using something improperly?

@Lanbai could you give a bit more on your setup? Eg: Android version, amount of ram? It’s hard to know what could be the cause without looking at the constraints of your app and whether you are covered by our armcompute support or not. If you don’t want to disclose too much, feel free to DM me.

Thanks for your reply!I’ll DM you some details!