From 1d779f0368ab656ce1bedcc9efb4647a3e5f697c Mon Sep 17 00:00:00 2001 From: teyrebaz33 Date: Wed, 8 Apr 2026 03:49:03 +0300 Subject: [PATCH] fix: remove unused json_tensors dead variable in convert_to_model_input() Fixes #250 json_tensors was initialized but never populated or returned, creating a silent data loss trap for future JSON tensor support. Removed the dead variable to keep the code clean and explicit. --- src/opengradient/client/_conversions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/opengradient/client/_conversions.py b/src/opengradient/client/_conversions.py index 495f663b..a33f4985 100644 --- a/src/opengradient/client/_conversions.py +++ b/src/opengradient/client/_conversions.py @@ -57,7 +57,6 @@ def convert_to_model_input(inputs: Dict[str, np.ndarray]) -> Tuple[List[Tuple[st logging.debug("Converting the following input dictionary to ModelInput: %s", inputs) number_tensors = [] string_tensors = [] - json_tensors = [] for tensor_name, tensor_data in inputs.items(): # Convert to NP array if list or single object if isinstance(tensor_data, list):