torchdiffeq icon indicating copy to clipboard operation
torchdiffeq copied to clipboard

Use of `assert` for data validations

Open lazyoracle opened this issue 4 years ago • 0 comments

Is there any particular reason for the use of assert statements as opposed to conditional checking and raising errors for many of the data validation checks throughout the code? In general, assert statements are considered unsafe for use in production code because they can be globally disabled.

lazyoracle avatar Jan 30 '22 10:01 lazyoracle