We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
seed
1 parent 5331dac commit 1801651Copy full SHA for 1801651
keras/legacy_tf_layers/migration_utils.py
@@ -43,14 +43,14 @@ class DeterministicRandomTestTool(object):
43
This applies both to the stateful random operations used for creating and
44
initializing variables, and to the stateful random operations used in
45
computation (such as for dropout layers).
46
+
47
+ Args:
48
+ mode: Set mode to 'constant' or 'num_random_ops'. Defaults to
49
+ 'constant'.
50
+ seed: The random seed to use.
51
"""
52
53
def __init__(self, seed: int = 42, mode="constant"):
- """
- Args:
- mode: Set mode to 'constant' or 'num_random_ops'. Defaults to
- 'constant'.
54
if mode not in {"constant", "num_random_ops"}:
55
raise ValueError(
56
"Mode arg must be 'constant' or 'num_random_ops'. "
0 commit comments