Skip to content
Snippets Groups Projects
Unverified Commit 7af68d1b authored by Mashiro's avatar Mashiro Committed by GitHub
Browse files

[Docs] Fix a link error in initialization tutorial (#843)

parent bb11f4d3
No related branches found
No related tags found
No related merge requests found
......@@ -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_
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment