-
Notifications
You must be signed in to change notification settings - Fork 9
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
Python relative import #26
Comments
Thanks for the message! The |
Thanks for answering! That works indeed but I wonder if there is a listing of available flags? Looking at the source code I see there are parameters such as the number of virtual channels and size, but I couldn't find how to pass those on to the frontend script. I'm talking about "flags" here: usage: ./pymtl3-net gen []' |
You can also do Alternatively, you can also create your own python file, import pymtl3_net, instantiate a network module with desired parameters, and apply pymtl3 translation pass to generate the verilog, or apply the simulation pass and create your own simulator. |
This is with Python 3.9 in cygwin. Is it a python version issue?
$ python3 examples/main.py
Traceback (most recent call last):
File "/home/mixel/pymtl3-net/examples/main.py", line 22, in
from meshnet.MeshNetworkCL import MeshNetworkCL
File "/home/mixel/pymtl3-net/build/lib/pymtl3_net/meshnet/init.py", line 1, in
from .MeshNetworkCL import MeshNetworkCL
File "/home/mixel/pymtl3-net/build/lib/pymtl3_net/meshnet/MeshNetworkCL.py", line 12, in
from ..ocnlib.cl import BoundaryUnit
ImportError: attempted relative import beyond top-level package
Thanks in advance.
The text was updated successfully, but these errors were encountered: