"vscode:/vscode.git/clone" did not exist on "45f90e943161472e32dd7f63dd5bb3da1ae82ae3"
Unverified Commit ddbba2b1 authored by zhoujun's avatar zhoujun Committed by GitHub
Browse files

Merge pull request #2228 from WenmuZhou/fix_attn_export

fix attn export
parents f687e092 592c4187
......@@ -38,7 +38,7 @@ class AttentionHead(nn.Layer):
return input_ont_hot
def forward(self, inputs, targets=None, batch_max_length=25):
batch_size = inputs.shape[0]
batch_size = paddle.shape(inputs)[0]
num_steps = batch_max_length
hidden = paddle.zeros((batch_size, self.hidden_size))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment