Skip to content

Comments

Editorial: Inline shape calculation algorithms only used once#814

Merged
huningxin merged 1 commit intowebmachinelearning:mainfrom
inexorabletash:inline
Feb 15, 2025
Merged

Editorial: Inline shape calculation algorithms only used once#814
huningxin merged 1 commit intowebmachinelearning:mainfrom
inexorabletash:inline

Conversation

@inexorabletash
Copy link
Contributor

@inexorabletash inexorabletash commented Feb 3, 2025

This is primarily to address an issue with "create pooling operation" where the input height and width are used before being calculated, but applies the same flattening across single use algorithms specific to shape calculation. The remaining helpers are either used multiple times by the same op algorithm (e.g. handling a single dimension) or shared across ops (e.g. reduction and argMin/argMax).


Preview | Diff

This is primarily to address an issue with "create pooling operation"
where the input height and width are used before being calculated, but
applies the same flattening across single use algorithms specific to
shape calculation. The remaining helpers are either used multiple
times by the same op algorithm (e.g. handling a single dimension) or
shared across ops (e.g. reduction and argMin/argMax).
@inexorabletash
Copy link
Contributor Author

A follow-up to #806 (comment) - please take a look @huningxin and @fdwr ?

Copy link
Collaborator

@fdwr fdwr left a comment

Choose a reason for hiding this comment

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

👍 Looks fine to me, mostly block moves (I wish GitHub CR diffs were a little clearer about simple line moves to speed up review). This will make the steps consistently inline AFAICS.

@inexorabletash
Copy link
Contributor Author

@huningxin can you take a look?

Copy link
Contributor

@huningxin huningxin left a comment

Choose a reason for hiding this comment

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

LGTM!

@huningxin huningxin merged commit a88bb0e into webmachinelearning:main Feb 15, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Feb 15, 2025
SHA: a88bb0e
Reason: push, by huningxin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@inexorabletash inexorabletash deleted the inline branch February 15, 2025 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants