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

Address review comments on Arm(R) Ethos(TM)-U PR 3/6 #9159

Merged
merged 3 commits into from
Oct 12, 2021

Conversation

mbaret
Copy link
Contributor

@mbaret mbaret commented Sep 30, 2021

This patch addresses the review comments left on #8806. Small changes are made to the API of ScheduleBuilder so that it can be reused in the NPU compiler, allowing us to remove a largely duplicated piece of code.

@areusch
Copy link
Contributor

areusch commented Oct 4, 2021

cc @mbs-octoml @jroesch PTAL

Copy link
Contributor

@mbs-octoml mbs-octoml left a comment

Choose a reason for hiding this comment

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

LGTM

scale = np.single(scale.value.value)
q_params = vapi.NpuQuantization(scale_f32=scale, zero_point=zero_point.value)
return q_params
return vapi.NpuQuantization(scale_f32=float(scale), zero_point=int(zero_point))
Copy link
Contributor

Choose a reason for hiding this comment

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

The only semantic change, right? Can you explain it in the PR summary, thx.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function was doing something it didn't need to (per-channel scales never actually appear here), so I just simplified it to remove that confusion. I'll amend the commit message to include reference to this.


Parameters
----------
te_graph
The TE graph to schedule.
cached_func : CachedFunc
Copy link
Contributor

Choose a reason for hiding this comment

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

Heads up we're trying to move both the TECompiler and CachedFunc structures to be internal only. I think the idea is all the cross-reference stuff accumulated in CachedFunc would be captured as 'official' attributes on the call or defn. So obviously we'll need to include this in that refactor.

@mbaret
Copy link
Contributor Author

mbaret commented Oct 8, 2021

Apologies for the delay fixing CI here, having some environment problems locally. Will hopefully be fixed by next week.

Change-Id: I22961885a503be31f6a72622ae0b5f874cc6f463
Change-Id: I3e2fde786096ea331fcb366080fa779ec4ea4a5d
Change-Id: I1026e3ccee33a3fdec9ebbf6456bae244ad4f1d5
masahi pushed a commit to Laurawly/tvm-1 that referenced this pull request Oct 14, 2021
* Address review comments on Arm(R) Ethos(TM)-U PR 3/6

Change-Id: I22961885a503be31f6a72622ae0b5f874cc6f463

* Fix rebasing error

Change-Id: I3e2fde786096ea331fcb366080fa779ec4ea4a5d

* Fix more rebasing problems

Change-Id: I1026e3ccee33a3fdec9ebbf6456bae244ad4f1d5
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
* Address review comments on Arm(R) Ethos(TM)-U PR 3/6

Change-Id: I22961885a503be31f6a72622ae0b5f874cc6f463

* Fix rebasing error

Change-Id: I3e2fde786096ea331fcb366080fa779ec4ea4a5d

* Fix more rebasing problems

Change-Id: I1026e3ccee33a3fdec9ebbf6456bae244ad4f1d5
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
* Address review comments on Arm(R) Ethos(TM)-U PR 3/6

Change-Id: I22961885a503be31f6a72622ae0b5f874cc6f463

* Fix rebasing error

Change-Id: I3e2fde786096ea331fcb366080fa779ec4ea4a5d

* Fix more rebasing problems

Change-Id: I1026e3ccee33a3fdec9ebbf6456bae244ad4f1d5
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