Save compiled library

Hi, I’m following the Raspberry Pi tutorial, but I want to save the compiled library generated by lib = relay.build(func, target, params=params) in order to reuse it later (still using RPC) without having to compile the model again.

I try to save the lib without using a temp directory lib.export_library('test.tar') but I reach the following error:

AttributeError: 'GraphExecutorFactoryModule' object has no attribute 'export'

I see it’s lib.export_library(lib_fname) from the tutorial you linked.

Sorry for the typo. It’s lib.export_library('test.tar') that raises the error. I edit my first message