Browse Source

!13770 fix typo errors and args mismatches

From: @dong-li001
Reviewed-by: @zhang_yi2020,@kingxian,@zhunaipan
Signed-off-by: @kingxian
pull/13770/MERGE
mindspore-ci-bot Gitee 5 years ago
parent
commit
e84a8acba9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/common/seed.py

+ 2
- 2
mindspore/common/seed.py View File

@@ -174,7 +174,7 @@ def _update_seeds(op_seed, kernel_name):
Update the seed every time when a random op is called.

Args:
seed (int): The op-seed to be updated.
op_seed (int): The op-seed to be updated.
kernel_name (string): The random op kernel.
"""
global _KERNEL_SEED
@@ -188,7 +188,7 @@ def _get_op_seed(op_seed, kernel_name):
If the seed does not exist, add it into the kernel's dictionary.

Args:
seed (int): The op-seed to be updated.
op_seed (int): The op-seed to be updated.
kernel_name (string): The random op kernel.
"""
if (kernel_name, op_seed) not in _KERNEL_SEED:


Loading…
Cancel
Save