Skip to content

[Feature Request]: Add mask management to BatchNormalization layer #1198

Open
@Utanapishtim31

Description

@Utanapishtim31

Background and Feature Description

BatchNormalization output is sensitive to masking. Masking should be handled in the same way as RNN layers.

The mask tensor should be detected as an input of the BatchNormalization layer by the dependency detection mechanism to avoid the current exceptions raised when a Mask is declared for RNN layers. The same fix should be done for the RNN layers.

API Definition and Usage

public class BatchNormalizationOptionalArgs : IOptionalArgs
{
    public string Identifier => "BatchNormalization";
    public Tensor Mask { get; set; }
}

Alternatives

No response

Risks

Minimal

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions