Thanks for the reply.
However, it looks like both the ExternalFunctionCall node and the enhancement of this feature, as described in the link you mentioned, add the possibility to use custom code during execution.
But how can I trigger custom layer parsing during the parsing of the model?
For example:
I’m trying to compile a bundle from a tensorflow-lite model which contains the “SpaceToBatch” layer, which isn’t supported by glow, and as a result I receive the following error:
“Error message: TensorFlowLite: Operator type ‘SPACE_TO_BATCH_ND’ is not supported!”
But the backend knows how to parse this layer - When this layer is encountered, I’d like to create a new MySpace2BatchNode (which is defined in the backend), and add it to the graph.
Is there a way to instruct glow (without frontend code changes), that if the model parser encountered a layer it cannot parse, ask the backend if it can parse it, instead of failing immediately?
In other words, can the control pass to the backend before the parsing of the model is complete, or is the only way to change the behavior of the parser is to modify the parser code itself?
Thanks.