-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use randint instead of randn to prevent undefined cast (float to uint) (
onnx#4804) * use randint instead of randn to prevent undefined cast float to uint Signed-off-by: jcwchen <[email protected]> * use unsigned integer to cover more cases Signed-off-by: jcwchen <[email protected]> * introduce create_random_int_input_for_cast Signed-off-by: jcwchen <[email protected]> * improve by reviews Signed-off-by: jcwchen <[email protected]> * set correct boundary Signed-off-by: jcwchen <[email protected]> * added for int8, int16, int32, int64 Signed-off-by: jcwchen <[email protected]> * fix bug test case Signed-off-by: jcwchen <[email protected]> --------- Signed-off-by: jcwchen <[email protected]>
- Loading branch information
Showing
50 changed files
with
121 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.