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

[Feature] Allow list of AlloType as dtype for Structure #148

Open
rlin10 opened this issue Mar 26, 2024 · 0 comments
Open

[Feature] Allow list of AlloType as dtype for Structure #148

rlin10 opened this issue Mar 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rlin10
Copy link

rlin10 commented Mar 26, 2024

Is your feature request related to a problem? Please describe.
Yes. Currently, Allo's Structure type asserts if the dtype input is of AlloType. This causes the scenario where if the input type is a list such as uint8[16], there is an assertion failure.

Something like this works

t = Structure({
    "uint": uint8
})

but the following doesn't

t1 = Structure({
    "uint list": uint8[16]
})

Describe the solution you'd like
List of AlloType should also be allowed as dtype when creating a type using Structure

@rlin10 rlin10 added the enhancement New feature or request label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants