From 8e9f9d4f5dee00b2162e2c5bff9f9ea990fe152f Mon Sep 17 00:00:00 2001 From: Hanna Lee <56112502+seunghalee1226@users.noreply.github.com> Date: Mon, 20 Nov 2023 16:34:07 +0900 Subject: [PATCH] Fix Invalid syntax at convert_recipe_to_code.py (#1642) * Fix Invalid syntax at convert_recipe_to_code.py * Fix Invalid syntax at convert_recipe_to_code.py --------- Co-authored-by: Eugene Khvedchenya --- src/super_gradients/convert_recipe_to_code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/super_gradients/convert_recipe_to_code.py b/src/super_gradients/convert_recipe_to_code.py index 724e51d4f6..60cc0cfad7 100644 --- a/src/super_gradients/convert_recipe_to_code.py +++ b/src/super_gradients/convert_recipe_to_code.py @@ -179,13 +179,13 @@ def main(): ) train_dataloader = dataloaders.get( - name={train_dataloader}, + name={wrap_in_quotes_if_string(train_dataloader)}, dataset_params={train_dataset_params}, dataloader_params={train_dataloader_params}, ) val_dataloader = dataloaders.get( - name={val_dataloader}, + name={wrap_in_quotes_if_string(val_dataloader)}, dataset_params={val_dataset_params}, dataloader_params={val_dataloader_params}, )