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

[TensorV2] Create a mask of dropout, filter, and zoneout @open sesame 02/26 12:23 #2477

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

djeong20
Copy link
Contributor

This PR adds new functionalities for getting masks of the following techniques: dropout, filter, and zoneout. These functions enable working with masks, making it easier to perform such techniques in regularization.

Changes proposed in this PR:

  • Added dropout_mask(), which calculates the dropout mask by multiplying tensor elements by 1.0 / (1.0 - dropout rate), in place.
  • Added filter_mask(), which takes an input tensor and applies a filter mask based on the given mask length and invert option.
  • Added zoneout_mask(), which generates two zoneout masks, one for in-place operation and another for opposite operation, based on the specified zoneout rate.

Self-evaluation:

  1. Build test: [X]Passed [ ]Failed [ ]Skipped
  2. Run test: [X]Passed [ ]Failed [ ]Skipped

@taos-ci
Copy link

taos-ci commented Feb 19, 2024

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2477. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@djeong20, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Member

@DonghakPark DonghakPark left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@skykongkong8 skykongkong8 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@jijoongmoon jijoongmoon left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@djeong20, 💯 All CI checkers are successfully verified. Thanks.

@djeong20 djeong20 added PR/OK2GO CI failed but okay to merge/review and removed rebase required labels Feb 23, 2024
This PR adds new functionalities for getting masks of the following techniques: dropout, filter, and zoneout.
These functions enable working with masks, making it easier to perform such techniques in regularization.

**Changes proposed in this PR:**
- Added dropout_mask(), which calculates the dropout mask by multiplying tensor elements by 1.0 / (1.0 - dropout rate), in place.
- Added filter_mask(), which takes an input tensor and applies a filter mask based on the given mask length and invert option.
- Added zoneout_mask(), which generates two zoneout masks, one for in-place operation and another for opposite operation, based on the specified zoneout rate.

**Self-evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test:   [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghyeon Jeong <[email protected]>
@djeong20 djeong20 force-pushed the feat/tensor_v2/mask branch from 6550634 to 9db2efe Compare February 23, 2024 04:55
Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@djeong20, 💯 All CI checkers are successfully verified. Thanks.

@djeong20 djeong20 changed the title [TensorV2] Create a mask of dropout, filter, and zoneout [TensorV2] Create a mask of dropout, filter, and zoneout @open sesame 02/26 11:20 Feb 26, 2024
@djeong20 djeong20 changed the title [TensorV2] Create a mask of dropout, filter, and zoneout @open sesame 02/26 11:20 [TensorV2] Create a mask of dropout, filter, and zoneout @open sesame 02/26 11:50 Feb 26, 2024
@djeong20 djeong20 changed the title [TensorV2] Create a mask of dropout, filter, and zoneout @open sesame 02/26 11:50 [TensorV2] Create a mask of dropout, filter, and zoneout @open sesame 02/26 12:23 Feb 26, 2024
Copy link

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@djeong20, 💯 All CI checkers are successfully verified. Thanks.

@jijoongmoon jijoongmoon merged commit f689181 into nnstreamer:main Mar 4, 2024
35 of 39 checks passed
@djeong20 djeong20 deleted the feat/tensor_v2/mask branch March 20, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/OK2GO CI failed but okay to merge/review PR/READY2MERGE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants