Skip to content

[Primitive] Add .replace_all()#85

Merged
chhzh123 merged 2 commits intoawslabs:mainfrom
chhzh123:replace_all
Mar 23, 2023
Merged

[Primitive] Add .replace_all()#85
chhzh123 merged 2 commits intoawslabs:mainfrom
chhzh123:replace_all

Conversation

@chhzh123
Copy link
Contributor

Description

This PR add a new .replace_all() primitive for users to quickly replace all the submodules that satisfy certain type constraints with the new module.

Checklist

  • PR's title starts with a category (e.g. [Bugfix], [Model], [Tutorial], etc)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented

cc @comaniac

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@chhzh123 chhzh123 merged commit a4e00da into awslabs:main Mar 23, 2023
@chhzh123
Copy link
Contributor Author

Thanks @comaniac

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.

2 participants