Skip to content

Commit

Permalink
20211201
Browse files Browse the repository at this point in the history
  • Loading branch information
sun1638650145 committed Dec 1, 2021
1 parent 6c38643 commit d65019b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion TensorFlow.md
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,17 @@ import tensorflow as tf
tensor = tf.random.normal(shape=[2, 3]) # array-like|张量的形状.
```

### 1.23.2.uniform()
### 1.23.2.set_seed()

设置全局随机种子.

```python
import tensorflow as tf

tf.random.set_seed(seed=2021) # int|随机种子.
```

### 1.23.3.uniform()

生成均匀分布的张量.|`tensorflow.python.framework.ops.EagerTensor`

Expand Down

0 comments on commit d65019b

Please sign in to comment.