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

Type error 'module' object is not callable #51

Open
simoschip2000 opened this issue Jul 26, 2023 · 2 comments
Open

Type error 'module' object is not callable #51

simoschip2000 opened this issue Jul 26, 2023 · 2 comments

Comments

@simoschip2000
Copy link

I get the same error as an other user running the example code from the HLS4ML tutorial or the Conifer Usage section.
Running this line causes an error:
model = conifer.model(clf, conifer.converters.sklearn,
conifer.backends.xilinxhls, cfg)
221418955-057bead0-066f-4f40-b4fd-88ae455abef7

I have looked into the model.py myself but could not figure out which class should be called..

Is there a solution to this problem?
Thanks in advance!

The other user with the same problem:
fastmachinelearning/hls4ml-tutorial#37

@thesps
Copy link
Owner

thesps commented Jul 26, 2023

Hi, which conifer version are you using? The hls4ml tutorial conifer section is a bit outdated now, targeting 0.2b0.

You can take a look at some of the examples in the conifer examples directory for up to date syntax, e.g. from sklearn_to_hls.py

model = conifer.converters.convert_from_sklearn(clf, cfg)

I will update the usage section of the readme as that's outdated too, thanks for pointing it out.

@simoschip2000
Copy link
Author

I am using version 1.1, freshly installed with pip.

I will look into the examples. Thank you! :)

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

2 participants