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

Add preprocessing of list inputs for op by op execution #300

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

Conversation

mmanzoorTT
Copy link
Contributor

@mmanzoorTT mmanzoorTT commented Feb 11, 2025

closes #301

Ticket

#301

Problem description

aten::cat (concatenate) operation is failing for op-by-op execution due to mismatch in numbers of inputs

What's changed

Inputs preprocessing for op-by-op execution is updated to process inputs of type list.
Nightly tests (https://github.com/tenstorrent/tt-torch/actions/runs/13270505478) report shows the improvement.

Checklist

  • New/Existing tests provide coverage for changes

@mmanzoorTT mmanzoorTT marked this pull request as ready for review February 12, 2025 00:42
Copy link

TestsPassed ✅Skipped ⚠️Failed
TT-Torch Tests435 ran222 passed213 skipped0 failed
TestResult
No test annotations available

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (c8b40f3) to head (8fe87e0).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #300   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -336,6 +336,16 @@ def pre_process_inputs(self, *inputs):
if not inp.is_contiguous():
inp = inp.contiguous()
processed_inputs.append(inp)
elif isinstance(inp, list):
for ele in inp:
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please move this bit into a helper, and call it in both cases (i.e. if tensor or if element in list). Otherwise, looks great.

Copy link
Contributor

@AleksKnezevic AleksKnezevic left a comment

Choose a reason for hiding this comment

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

Please address comment, then all is good.

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.

aten::cat failure for op by op execution
3 participants