Using `ExecutionPlan` with `LayerMap` to Prevent Repeated Layer Construction

When using the ExecutionPlan , in order for me to prevent the layers from being constructed every time, should I pair it with a LayerMap?

I'm trying to have an AI model fallback, but it seems if I don't create this layerMap, the model layers are gonna be built and trashed all the time, no?
Was this page helpful?