conifer icon indicating copy to clipboard operation
conifer copied to clipboard

Possibly undefined bridge in HLS and CPP backends

Open thesps opened this issue 1 year ago • 0 comments

In the decision_function methods of HLS and C++ backends, the attribute self.bridge of the model is accessed to make the predictions. If compile hasn't already been called then this attribute won't exist and the method will fail in a hard-to-interpret way. Proposed fix: in the decision_function methods, check if self.bridge exists, and if not, then call compile.

thesps avatar Aug 12 '24 09:08 thesps