Browse Source

Fix comment error

tags/v0.7.0-beta
huangxinjing Gitee 5 years ago
parent
commit
f6eeb212d8
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) dim = len(arr.shape)
if dim < 2: 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_in = arr.shape[1]
n_out = arr.shape[0] n_out = arr.shape[0]


Loading…
Cancel
Save