mindspore-lab / mindone

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

fix(diffusers/layers): remove additional arguments used in construct() #530

Closed townwish4git closed 2 weeks ago

townwish4git commented 3 weeks ago

What does this PR do?

Fixes bugs in mindone.diffusers.models:

Existing additional arguments used in nn.Cell.construct() such as *args raise errors in static graph mode, therefore we remove all these arguments as they are not used actually.

These modules are affected:

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.

@xxx