"docs/zh_CN/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "c481e86d6bf19e2300d15c90844c8d1aca8e9c19"
[Refactor] Rename clamp functions and enhance dtype handling in tests (#232)
- Renamed `clamp` to `clamp_within_bounds` and `clamp_v2` to `clamp_value_range` for improved clarity. - Updated dtype handling in `clamp_value_range` to use the correct tensor dtype. - Modified test cases to reflect the new function names and ensure proper dtype conversion using `map_torch_type`. - Enhanced the reference program for clamping to utilize the updated tensor dtype, improving accuracy in tests.
Showing
Please register or sign in to comment