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

Stevenabreu7 nir #16

Merged
merged 8 commits into from
Oct 27, 2023
Merged

Stevenabreu7 nir #16

merged 8 commits into from
Oct 27, 2023

Conversation

kmheckel
Copy link
Owner

No description provided.

"""Converts a Spyx network to a NIR graph."""
# construct the edge list for the NIRGraph
keys = list(spyx_pytree.keys())
edges = [(keys[i], keys[i + 1]) for i in range(len(keys) - 1)] # assume linear connectivity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will the keys of the pytree always be ordered? if not, the edges of the NIR graph would be incorrect, wouldn't they?

@kmheckel
Copy link
Owner Author

kmheckel commented Oct 25, 2023 via email

@kmheckel kmheckel merged commit 855994d into kmheckel:main Oct 27, 2023
3 checks passed
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.

2 participants