multiple_containers
MultipleContainers
¶
Bases: BaseContainer
Contains other containers and initializes them.
Source code in pytorch_adapt\containers\multiple_containers.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
create()
¶
Calls .create()
or .create_with()
on sub-containers.
- Optimizers are created with models as input.
- LR schedulers are created with optimizers as input.
Source code in pytorch_adapt\containers\multiple_containers.py
50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
merge(**kwargs)
¶
Merges the input containers into any existing sub-containers.
Source code in pytorch_adapt\containers\multiple_containers.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|