You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code from the introductory post referenced in the README isn't running, I suppose it's just outdated. I think it should be updated since it's referenced in this repo.
importconcrete.compilerascompilermlir_input=""" func.func @main(%arg0: !FHE.eint<6>, %arg1: !FHE.eint<6>) -> !FHE.eint<6> { %result = "FHE.add_eint"(%arg0, %arg1): (!FHE.eint<6>, !FHE.eint<6>) -> (!FHE.eint<6>) return %result: !FHE.eint<6> }"""# create a new compiler engine that will write artifacts to the `out` directoryengine=compiler.LibrarySupport.new("./out")
# create the default compilation options, you can modify those at your convenience via the `set_*` methodsoptions=compiler.CompilationOptions.new()
# use the compiler engine to compile the program with the options you definedcompilation_result=engine.compile(mlir_input, options)
I get this error
engine = compiler.LibrarySupport.new("./out")
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'concrete.compiler' has no attribute 'LibrarySupport'
I tried to substitute LibrarySupport.new with Library.__new__ (that are defined) but I had no luck.
System info
I'm running on Python 3.12.8 and concrete-python 2.9.0.
The text was updated successfully, but these errors were encountered:
Hello @Frollamma , thank you for reporting. Indeed low-level python bindings of concrete-compiler has been refactored and this code is now out of date. Thank you for reporting, we will change the python code in the blog post.
Summary
Code from the introductory post referenced in the README isn't running, I suppose it's just outdated. I think it should be updated since it's referenced in this repo.
Description
By running the following code (copy pasted from https://www.zama.ai/post/zama-concrete-fully-homomorphic-encryption-compiler)
I get this error
I tried to substitute
LibrarySupport.new
withLibrary.__new__
(that are defined) but I had no luck.System info
I'm running on
Python 3.12.8
andconcrete-python 2.9.0
.The text was updated successfully, but these errors were encountered: