mindspore-lab / mindone

one for all, Optimal generator with No Exception
Apache License 2.0
328 stars 62 forks source link

[BUG fix] DiT mask error #471

Closed wtomin closed 2 months ago

wtomin commented 2 months ago

Fix the bug that DiT Attention cannot handle mask which is not None. Using ops.select instead of masked_fill to fill mask with -inf value.