Skip to content

comment correction in modeling_bart.py #8384

@jc-hou

Description

@jc-hou

Hello, in here

# Convert to Bart output format: (seq_len, BS, model_dim) -> (BS, seq_len, model_dim)

I think the comment should be

# Convert to Bart output format: (BS, seq_len, model_dim) -> (seq_len, BS, model_dim) 

Before transpose , shape of x and encoder_hidden_states are both (BS, seq_len, model_dim) to me.
Thanks.

Metadata

Metadata

Assignees

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