torchdiffeq
torchdiffeq copied to clipboard
Use of `assert` for data validations
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.