"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "a893f313d02ed67aa3b2968242bebef09f09ce1d"
Pr 2374 ci branch (#2378)
* Update __init__.py
Fix issue with NoneType comparison for max_input_tokens and sliding_window
- Add default values for max_input_tokens and sliding_window to handle None cases.
- Ensure the comparison between max_input_tokens and sliding_window is handled correctly to prevent TypeError.
- This change addresses the error: TypeError: '<=' not supported between instances of 'int' and 'NoneType'.
* Update __init__.py
Handle NoneType in sliding_window comparison to fix TypeError in __init__.py by ensuring the comparison logic accounts for NoneType values, preventing errors and improving code robustness.
* fix: syntax/style tweak
---------
Co-authored-by:
Praz <prazanth2006@gmail.com>
Showing
Please register or sign in to comment