Skip to content

No clipping before activation in LSTM #27224

@bac-cab

Description

@bac-cab

Here is the line of code, where activation function h is applied:

activation_h_.func(pC_cur, pC_prev_clipped, po, pH, hidden_size_, activation_h_.alpha, activation_h_.beta);

ONNX documentation for LSTM says that input to every activation function must be clipped if clip parameter is specified:

https://onnx.ai/onnx/operators/onnx__LSTM.html#attributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions