Browse Source

Update decoder.py

main
BBing 2 years ago
parent
commit
b613fc8f91
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/decoder.py

+ 1
- 0
models/decoder.py View File

@@ -1,6 +1,7 @@
import mindspore.nn as nn
import mindspore.ops.operations as ops


class DecoderLayer(nn.Cell):
def __init__(self, self_attention, cross_attention, d_model, d_ff=None,
dropout=0.1, activation="relu"):


Loading…
Cancel
Save