mindspore-ai / mindspore

MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios.
https://gitee.com/mindspore/mindspore
Apache License 2.0
4.31k stars 709 forks source link

Lack of description of the range of values for in_channels and out_channels in the mindspore.nn.Dense documentation #289

Open PhyllisJi opened 5 months ago

PhyllisJi commented 5 months ago

Software Environment:

Describe the current behavior

mindspore.nn.Dense(in_channels=9, out_channels=0)

Error:

ValueError: For 'Dense', the 'out_channels' must be int and must > 0, but got '0' with type 'int'.

Describe the expected behavior

A more detailed description should be given in the documentation

moyanxinxu commented 3 months ago

The output channel can only be an integer greater than 0. 抛出的错误提示很清楚,输出的通道只能是大于0的整数