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

#1108: Added ability to dump golden data into flatbuffer file for int… #1189

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

tapspatel
Copy link
Contributor

…ermediate ops and output using python infra for generating ttir modules

Copy link
Contributor

@nsmithtt nsmithtt left a comment

Choose a reason for hiding this comment

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

Looks great, minor comments inline

python/test_infra/ttir_builder.py Outdated Show resolved Hide resolved
include/ttmlir/Target/Utils/MLIRToFlatbuffer.h Outdated Show resolved Hide resolved
@kmitrovicTT
Copy link
Contributor

Nitpick: broken title
image

Copy link
Contributor

@kmitrovicTT kmitrovicTT left a comment

Choose a reason for hiding this comment

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

Looks great! Kudos for making entire python->flatbuffer pipeline work!

Some comments inline.

include/ttmlir/Target/Utils/MLIRToFlatbuffer.h Outdated Show resolved Hide resolved
lib/Target/TTNN/TTNNToFlatbuffer.cpp Show resolved Hide resolved
lib/Target/TTNN/TTNNToFlatbuffer.cpp Outdated Show resolved Hide resolved
python/test_infra/ttir_builder.py Outdated Show resolved Hide resolved
python/test_infra/test_utils.py Show resolved Hide resolved
python/test_infra/test_utils.py Outdated Show resolved Hide resolved
python/test_infra/test_utils.py Outdated Show resolved Hide resolved
python/test_infra/test_utils.py Outdated Show resolved Hide resolved
python/test_infra/test_utils.py Outdated Show resolved Hide resolved
@tapspatel
Copy link
Contributor Author

Nitpick: broken title image

so it expands the sentence into the description if the commit message is too long.

@tapspatel
Copy link
Contributor Author

fixed all comments. Thanks for the suggestions!

…ermediate ops and output using python infra for generating ttir modules
@tapspatel tapspatel merged commit 0ee309b into main Nov 7, 2024
18 checks passed
@@ -3,5 +3,4 @@
# SPDX-License-Identifier: Apache-2.0

from ._ttnn_ops_gen import *
from ._ttnn_enum_gen import *
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we did something weird, I merged in #1194, which assumed this line was kept. I'll make a new PR to keep it in I guess.

Copy link
Contributor Author

@tapspatel tapspatel Nov 7, 2024

Choose a reason for hiding this comment

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

I think this was my bad. I cherry-picked your original code but not the new changes. Lemme know when you put up a new PR and ill approve.

@tapspatel tapspatel deleted the tpatel/issue-1108 branch November 8, 2024 18:50
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.

Add golden mode in flatbuffer through python TTIR lowering infra
4 participants