Browse Source

Update masking.py

main
BBing 2 years ago
parent
commit
bf81afc17d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/masking.py

+ 1
- 1
utils/masking.py View File

@@ -1,7 +1,7 @@
import mindspore import mindspore
import mindspore.ops.operations as P import mindspore.ops.operations as P
import mindspore.numpy as mnp import mindspore.numpy as mnp
1
class TriangularCausalMask(): class TriangularCausalMask():
def __init__(self, B, L, device="cpu"): def __init__(self, B, L, device="cpu"):
mask_shape = [B, 1, L, L] mask_shape = [B, 1, L, L]


Loading…
Cancel
Save