Commit 8fa5328
committed
fix: add comprehensive validation for ValidationInputs and ValidationLabels
The previous validation only checked for null when ValidateAfterEpoch was true.
Now the validation is much stricter:
- If either ValidationInputs or ValidationLabels is non-null, both must be non-null
- Both arrays must have Length > 0 (not empty)
- Both arrays must have the same Length
- Clear error messages indicate which array is missing/empty or show length mismatch
This prevents runtime errors from empty arrays or mismatched validation data.1 parent 6b30c8c commit 8fa5328
1 file changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
402 | 425 | | |
403 | 426 | | |
404 | 427 | | |
0 commit comments