diff --git a/mindspore/common/initializer.py b/mindspore/common/initializer.py index 48a142a23f..f7bf3fef3d 100644 --- a/mindspore/common/initializer.py +++ b/mindspore/common/initializer.py @@ -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]