shi
ibp_init_shi(model_ori, model)
Reinitialize the weights of the given model according to the Shi et al. (2020) initialization scheme.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_ori
|
Module
|
The original model. |
required |
model
|
BoundedModule
|
The LiRPA model. |
required |
Returns:
Type | Description |
---|---|
None |
Source code in CTRAIN/train/certified/initialisation/shi.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|