-
Notifications
You must be signed in to change notification settings - Fork 607
Move compile spec to ArmTester interface #2991
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
Conversation
freddan80
commented
Apr 11, 2024
- Create compile spec builder
- Added default compile spec for unit tests
- Cleaned up some redundant parameters
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2991
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 3 Unrelated FailuresAs of commit 7204b6b with merge base 57dd7f1 ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
CI failure unrelated to this PR |
* Create compile spec builder * Added default compile spec for unit tests Change-Id: Ieae15b213969c703fc0bfcfd99a6a84ae3412676 Signed-off-by: Fredrik Knutsson <fredrik.knutsson@arm.com> Co-authored-by: Per Åstrand <per.astrand@arm.com>
8da4d0a
to
7204b6b
Compare
CI fails not related to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
self.path_for_intermediates = None | ||
self.permute_nhwc = False | ||
|
||
def ethosu_compile_spec( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just do this in __init__
or you can create a @classmethod
if you want to write another constructor.
self.output_format = "tosa" | ||
return self | ||
|
||
def dump_intermediate_tosa(self, output_path: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can all of these be @property
?
So you can just do
builder.dump_intermediate_tosa = True
and
if builder.dump_intermediate_tosa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@digantdesai merged this pull request in 64497b7. |