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

Made the colors of the graph parametrizable #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hcarolus
Copy link

@hcarolus hcarolus commented Nov 4, 2024

This pull request adds the color scheme as a member variable to ComputationGraph. By this means, the color scheme of the graph can be changed by setting it via a parameter in the function draw_graph.

A test was added to ensure the new feature works.

This PR resolves #111

Copy link

vercel bot commented Nov 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
torchview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 10:57am

@mert-kurttutan
Copy link
Owner

This seems useful and simple enough to implement. Can you also provide a larger (and more practically used example, something like BERT) where we can see the benefit of this (vs previous solution)?.

@mert-kurttutan
Copy link
Owner

We should also put some sort of validation for color scheme input, making sure that correct keys are passed and color names.
Correct keys is simple. What about color names? Does graphviz provide validation or error when incorrect color names are 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.

Parametrizable color scheme for graphs
2 participants