• Jeremy Reizenstein's avatar
    fix to get_default_args(instance) · 4d9215b3
    Jeremy Reizenstein authored
    Summary:
    Small config system fix. Allows get_default_args to work on an instance which has been created with a dict (instead of a DictConfig) as an args field. E.g.
    
    ```
    gm = GenericModel(
            raysampler_AdaptiveRaySampler_args={"scene_extent": 4.0}
        )
        OmegaConf.structured(gm1)
    ```
    
    Reviewed By: shapovalov
    
    Differential Revision: D40341047
    
    fbshipit-source-id: 587d0e8262e271df442a80858949a48e5d6db3df
    4d9215b3
test_config.py 28.9 KB