Skip to content

Commit

Permalink
[Docs] Fix a link error in initialization tutorial (open-mmlab#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
HAOCHENYE authored Dec 23, 2022
1 parent bb11f4d commit 7af68d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/advanced_tutorials/initialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Initialized by user-defined `init_weights` in ToyConv

### Ininitailize module with function

As mentioned in prior \[section\](#Customize the initialization method), we could customize our initialization in `init_weights`. To make it more convenient to initialize modules, MMEngine provides a series of **module initialization functions** to initialize the whole module based on `torch.nn.init`. For example, we want to initialize the weights of the convolutional layer with normal distribution and initialize the bias of the convolutional layer with a constant. The implementation of `torch.nn.init` is as follows:
As mentioned in prior [section](#customize-the-initialization-method), we could customize our initialization in `init_weights`. To make it more convenient to initialize modules, MMEngine provides a series of **module initialization functions** to initialize the whole module based on `torch.nn.init`. For example, we want to initialize the weights of the convolutional layer with normal distribution and initialize the bias of the convolutional layer with a constant. The implementation of `torch.nn.init` is as follows:

```python
from torch.nn.init import normal_, constant_
Expand Down

0 comments on commit 7af68d1

Please sign in to comment.