Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PhyllisJi opened this issue Jun 4, 2024 · 1 comment

Comments

@PhyllisJi
Copy link

Software Environment:

  • MindSpore version (source or binary): binary
  • Python version (e.g., Python 3.7.5): 3.9
  • OS platform and distribution (e.g., Linux Ubuntu 16.04): Ununtu 20.04
  • GCC/Compiler version (if compiled from source):

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
Copy link

moyanxinxu commented Aug 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants