Compile TF model for Hexagon

Can we use relay.build to compile TF model for Hexagon target now?

I tried it, but got following error:

relay.build(mod, target=target, params=params)

raise RuntimeError("schedule_injective not registered for '%s'" % target)

RuntimeError: schedule_injective not registered for 'hexagon -keys=hexagon -mattr=+hvxv66,+hvx-length128b -mcpu=hexagonv66 -mtriple=hexagon'

We don’t really support relay compilation for Hexagon at the moment.

You can convert TF to TFLite. TFLite Android runtime supports CPU/GPU/NNAPI/Hexagon

TFLite image classification example

What is your platform? Android or Linux?

Thanks, is there any plan on it?

Thanks a lot! My platform is Linux, but I will try it on Android.

There is definitely a desire to have it working, but the plans are very tentative. We hope to have it some time this year.

1 Like