Skip to content

Commit

Permalink
Add docstring to Identity and mention it in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iver56 committed Jun 29, 2022
1 parent 2351b48 commit 8f84099
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ _Added in v0.8.0_

Apply high-pass filtering to the input audio.

## Identity

_Added in v0.11.0_

This transform returns the input unchanged. It can be used for simplifying the code
in cases where data augmentation should be disabled.

## LowPassFilter

_Added in v0.8.0_
Expand Down
4 changes: 4 additions & 0 deletions torch_audiomentations/augmentations/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@


class Identity(BaseWaveformTransform):
"""
This transform returns the input unchanged. It can be used for simplifying the code
in cases where data augmentation should be disabled.
"""

supported_modes = {"per_batch", "per_example", "per_channel"}
supports_multichannel = True
Expand Down

0 comments on commit 8f84099

Please sign in to comment.