Closed leonwanghui closed 3 years ago
@leonwanghui Thank you for your question.
The reason for this problem is that under the MindSprore Parameter naming mechanism, the use of SequentialCell will cause the internal parameter name unable to be added index prefix. In graph mode, it will check whether the parameter has the same name. It is recommended that you switch to pynative mode to avoid this problem.
The problem has been recorded and will be fixed later. Please keep your attention.
@Caozhou1995 Got it, so I will keep this issue open until the bug fixed, thanks!
@leonwanghui Thank u for your attention! The bug has been fixed and u can retry it.
Got it, thx!
Environment
Hardware Environment(
Ascend
/GPU
/CPU
):/device cpu
Software Environment:
v1.1.1
3.7.4
Windows 10
8.1.0
Describe the current behavior
When I tried to use
nn.SequentialCell
class to construct the network using the below code:Some errors occurred:
But if I removed some operators like this:
Everything worked well.
Describe the expected behavior
Please take a look if the
nn.SequentialCell
doesn't support two operators with the same names.Steps to reproduce the issue
Related log / screenshot
Special notes for this issue