Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly undefined bridge in HLS and CPP backends #72

Open
thesps opened this issue Aug 12, 2024 · 0 comments
Open

Possibly undefined bridge in HLS and CPP backends #72

thesps opened this issue Aug 12, 2024 · 0 comments

Comments

@thesps
Copy link
Owner

thesps commented Aug 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant