Browse Source

!4020 Fix grammatical error in the comment

Merge pull request !4020 from huangxinjing/doc-error
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
dd68fb16bf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/common/initializer.py

+ 1
- 1
mindspore/common/initializer.py View File

@@ -163,7 +163,7 @@ def _calculate_in_and_out(arr):
"""
dim = len(arr.shape)
if dim < 2:
raise ValueError("If initialize data with xavier uniform, the dimension of data must greater than 1.")
raise ValueError("If initialize data with xavier uniform, the dimension of data must be greater than 1.")

n_in = arr.shape[1]
n_out = arr.shape[0]


Loading…
Cancel
Save