Skip to content

Possibly undefined bridge in HLS and CPP backends #72

@thesps

Description

@thesps

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions