Skip to content

Commit c3bbba1

Browse files
authored
fix: remove unused json_tensors dead variable in convert_to_model_input() (#259)
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.
1 parent 1e81181 commit c3bbba1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/opengradient/client/_conversions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def convert_to_model_input(inputs: Dict[str, np.ndarray]) -> Tuple[List[Tuple[st
5757
logging.debug("Converting the following input dictionary to ModelInput: %s", inputs)
5858
number_tensors = []
5959
string_tensors = []
60-
json_tensors = []
6160
for tensor_name, tensor_data in inputs.items():
6261
# Convert to NP array if list or single object
6362
if isinstance(tensor_data, list):

0 commit comments

Comments
 (0)