- Replace bare except: with except Exception: in __del__ and reset() to avoid
catching KeyboardInterrupt/SystemExit
- Add response.raise_for_status() to fail clearly on HTTP errors
- Fix resolution log output to show HxW instead of CHW shape
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- __del__: Add hasattr checks before del, iterate tensors dict to delete
each tensor individually, also clean up inputs/outputs
- reset: Same improvements plus reset cuda_graph_instance and graph
to None to prevent stale state on reuse
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>