pytorch/benchmarks/distributed
Zachary Kneupper b8d56572a1 Open json config file in context manager (#58077)
Summary:
* Open json config file safely using a context manager (using a with block).
* This will make sure that the file closed even if an exception is raised.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/58077

Reviewed By: anjali411

Differential Revision: D28711177

Pulled By: H-Huang

fbshipit-source-id: 597ba578311b1f1d6706e487872db4e784c78c3c
2021-05-26 08:58:40 -07:00
..
ddp
pipeline Add lint for unqualified type: ignore (#56290) 2021-04-21 08:07:23 -07:00
rpc Open json config file in context manager (#58077) 2021-05-26 08:58:40 -07:00