Fix missing parameter in "Accessing datamodule attributes" trick in the README (#219)
This commit is contained in:
1 parent
30c69b81c7
commit
0feda07965
1 file changed
+1
-1
@@ -976,7 +976,7 @@ The `config.yaml` from `.hydra` folder contains all overriden parameters and sec
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
# ./src/train.py
|
# ./src/train.py
|
||||||
model = hydra.utils.instantiate(config.model, dm_conf=config.datamodule)
|
model = hydra.utils.instantiate(config.model, dm_conf=config.datamodule, _recursive_=False)
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you can access any datamodule config part like this:
|
Now you can access any datamodule config part like this:
|
||||||
|
|||||||
Reference in new issue
Block a user