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

Added TT_TORCH_ENABLE_IR_DUMP env var to save all intermediate mlir dialect dumps - torch.FX, stablehlo, ttir, ttnn #194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tapspatel
Copy link

@tapspatel tapspatel commented Jan 13, 2025

No description provided.

@tapspatel tapspatel changed the title Added TT_TORCH_ENABLE_IR_DUMP env var to save all intermediate mlir d… Added TT_TORCH_ENABLE_IR_DUMP env var to save all intermediate mlir dialect dumps - torch.FX, stablehlo, ttir, ttnn Jan 13, 2025
@tapspatel tapspatel requested a review from mmanzoorTT January 13, 2025 18:13
…ialect dumps - torch.FX, stablehlo, ttir, ttnn
@tapspatel tapspatel force-pushed the tpatel/torch-ir-dump branch from e9874e6 to bbd9fab Compare January 13, 2025 18:18
save_intermediates = save_intermediates and int(save_intermediates)

if save_intermediates:
with open("gm_graph.txt", "w") as file:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'll suggest to use temp directories with named files.

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