Belle II Software development
|
Public Member Functions | |
def | __init__ (self, input_dim, num_heads, dim_feedforward, dropout, which_linear) |
Constructor. | |
def | forward (self, x) |
forward | |
Public Attributes | |
which_linear | |
which linear | |
self_attn | |
Attention layer. | |
linear_net | |
Two-layer MLP. | |
norm1 | |
norm1 | |
norm2 | |
norm2 | |
dropout | |
dropout | |
def __init__ | ( | self, | |
input_dim, | |||
num_heads, | |||
dim_feedforward, | |||
dropout, | |||
which_linear | |||
) |
Constructor.
Inputs: input_dim - Dimensionality of the input num_heads - Number of heads to use in the attention block dim_feedforward - Dimensionality of the hidden layer in the MLP dropout - Dropout probability to use in the dropout layers
Definition at line 909 of file ieagan.py.
def forward | ( | self, | |
x | |||
) |
forward
Definition at line 943 of file ieagan.py.