From a54c53b059444a049260e9b4b970ce7223936924 Mon Sep 17 00:00:00 2001 From: jiaoja Date: Tue, 19 Mar 2024 17:26:36 +0800 Subject: [PATCH] @jiaoja@Replace usage of list() with [] --- checkpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkpoint.py b/checkpoint.py index 1c6e878..68677e4 100644 --- a/checkpoint.py +++ b/checkpoint.py @@ -83,7 +83,7 @@ def fast_pickle(obj: Any, path: str) -> None: def load_tensors(shaped_arrays, directory, mesh_config, tensor_indices=None): """Loads a set of arrays.""" pool = ThreadPoolExecutor(max_workers=32) - fs = list() + fs = [] num_tensors = 0 num_replicas = 1 data_model_shards = math.prod(mesh_config)