1. 19 Dec, 2022 1 commit
    • Haroun Habeeb's avatar
      temp_new_allowed · 7bed2910
      Haroun Habeeb authored
      Summary:
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/438
      
      Adding new fields to a config is only allowed if `new_allowed=True`. yacs `CfgNode` provides a `set_new_allowed(value: bool)` function.
      
      We create a context manager like `temp_defrost` but for new_allowed to use it. We also implement unit test for the same
      
      Reviewed By: yanglinfang, newstzpz, wat3rBro
      
      Differential Revision: D41748992
      
      fbshipit-source-id: 71d048511476001ca96e6b36dde4d177b11268d7
      7bed2910
  2. 28 Oct, 2022 1 commit
  3. 05 Jun, 2022 1 commit
  4. 28 May, 2022 1 commit
  5. 15 May, 2022 1 commit
    • John Reese's avatar
      apply import merging for fbcode (7 of 11) · b3a9204c
      John Reese authored
      Summary:
      Applies new import merging and sorting from µsort v1.0.
      
      When merging imports, µsort will make a best-effort to move associated
      comments to match merged elements, but there are known limitations due to
      the diynamic nature of Python and developer tooling. These changes should
      not produce any dangerous runtime changes, but may require touch-ups to
      satisfy linters and other tooling.
      
      Note that µsort uses case-insensitive, lexicographical sorting, which
      results in a different ordering compared to isort. This provides a more
      consistent sorting order, matching the case-insensitive order used when
      sorting import statements by module name, and ensures that "frog", "FROG",
      and "Frog" always sort next to each other.
      
      For details on µsort's sorting and merging semantics, see the user guide:
      https://usort.readthedocs.io/en/stable/guide.html#sorting
      
      Reviewed By: lisroach
      
      Differential Revision: D36402205
      
      fbshipit-source-id: a4efc688d02da80c6e96685aa8eb00411615a366
      b3a9204c
  6. 26 Apr, 2022 1 commit
  7. 16 Mar, 2022 1 commit
  8. 26 Oct, 2021 1 commit
  9. 09 Sep, 2021 1 commit
  10. 16 Aug, 2021 1 commit
  11. 01 Jun, 2021 1 commit
    • Yanghan Wang's avatar
      misc update to config utils · 81ab967f
      Yanghan Wang authored
      Summary:
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/77
      
      - Reimplement `get_cfg_diff_table` by reusing other utils
      - Adding `reorder` option for `flatten_config_dict`
      - Remove the legacy BC support for `ARCH_DEF`, including `str_wrap_fbnet_arch_def` and customized `merge_from_other_cfg`.
      - Move `temp_defrost` from `utils.py` to `config.py`, this way there's no more namespace forwarding for `utils.py`
      - Merge `test_config_utils.py` and `test_configs.py`
      
      Reviewed By: zhanghang1989
      
      Differential Revision: D28734493
      
      fbshipit-source-id: 925f5944cf0e9019e4c54462e851ea16a5c94b8c
      81ab967f
  12. 31 Mar, 2021 1 commit
    • Sam Tsai's avatar
      fix bypassed rebase error · 1027896a
      Sam Tsai authored
      Summary: Fixing unit test that was not listed due to rebase error.
      
      Reviewed By: newstzpz, wat3rBro
      
      Differential Revision: D27456322
      
      fbshipit-source-id: 519c5c086adfb19104ed99234f4f476eb34a79bc
      1027896a
  13. 30 Mar, 2021 1 commit
    • Sam Tsai's avatar
      reorganize unit tests · a0658c4a
      Sam Tsai authored
      Summary: Separate unit tests into individual folder based on functionality.
      
      Reviewed By: wat3rBro
      
      Differential Revision: D27132567
      
      fbshipit-source-id: 9a8200be530ca14c7ef42191d59795b05b9800cc
      a0658c4a
  14. 03 Mar, 2021 1 commit