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

allow dynamic resolving within the graph #95

Merged
merged 19 commits into from
Feb 26, 2024
Merged

allow dynamic resolving within the graph #95

merged 19 commits into from
Feb 26, 2024

Conversation

PythonFZ
Copy link
Member

@PythonFZ PythonFZ commented Feb 26, 2024

Introduce dynamic graph building

graph = znflow.DiGraph()
with graph:
    node1 = AddOne(inputs=1)
    for _ in range(10):
        node1 = AddOne(inputs=node1.outputs)
        if znflow.resolve(node1.outputs) > 5:
            break

In the current version, there is no flexibility in choosing the deployment version.

znflow/graph.py Outdated Show resolved Hide resolved
@PythonFZ PythonFZ merged commit b9bbb3d into main Feb 26, 2024
6 checks passed
@PythonFZ PythonFZ deleted the dynamic-resolve branch February 26, 2024 09:22
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