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

Lowering input and weight names into the MLIR argument attributes #92

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

sdjordjevicTT
Copy link
Contributor

@sdjordjevicTT sdjordjevicTT commented Aug 15, 2024

Lowering input and weight names into the MLIR function argument attribute names:

func.func @main(%arg0: tensor<1x784xf32> {ttir.name = "input_1"} loc("MNISTLinear":4294967295:0), %arg1: tensor<1x10xf32> {ttir.name = "b2"} loc("MNISTLinear":4294967295:0), %arg2: tensor<256x10xf32> {ttir.name = "l2.weight"} loc("MNISTLinear":4294967295:0), %arg3: tensor<1x256xf32> {ttir.name = "b1"} loc("MNISTLinear":4294967295:0), %arg4: tensor<784x256xf32> {ttir.name = "l1.weight"} loc("MNISTLinear":4294967295:0)) -> tensor<1x10xf32>

Added attributes:
{ttir.name = "input_1"}
{ttir.name = "b2"}
{ttir.name = "l2.weight"}
{ttir.name = "b1"}
{ttir.name = "l1.weight"}

Solves: https://github.com/tenstorrent/tt-forge/issues/91

@sdjordjevicTT sdjordjevicTT merged commit 82db124 into main Aug 16, 2024
2 checks passed
@sdjordjevicTT sdjordjevicTT deleted the sdjordjevic/lower_argument_names branch September 5, 2024 09:05
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.

3 participants