Skip to content

fix: reorder imports in __init__.py to resolve circular import temporarily#13

Open
xinhao-luo wants to merge 1 commit intomicrosoft:masterfrom
xinhao-luo:master
Open

fix: reorder imports in __init__.py to resolve circular import temporarily#13
xinhao-luo wants to merge 1 commit intomicrosoft:masterfrom
xinhao-luo:master

Conversation

@xinhao-luo
Copy link

@xinhao-luo xinhao-luo commented Jan 26, 2026

Thanks for your great work!

When running python ./examples/flash_attention/flash_attention.py for test, I encountered a circular import error:

File "/.../kaleido/frontend/operations/conversion.py", line 21, in <module>
    from kaleido import FractalTensor, FractalTensorStorage, Tensor, TensorStorage
ImportError: cannot import name 'FractalTensor' from partially initialized module 'kaleido' (most likely due to a circular import) (/../FractalTensor/kaleido/__init__.py)

I moved from kaleido.frontend import operations to the end to solve this temporarily.

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

Successfully merging this pull request may close these issues.

1 participant