File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -394,17 +394,15 @@ function check_model_and_trace(
394
394
end
395
395
396
396
"""
397
- check_model([rng, ] model::Model; kwargs... )
397
+ check_model(model::Model, varinfo::AbstractVarInfo; error_on_failure=false )
398
398
399
- Check that `model` is valid, warning about any potential issues.
400
-
401
- See [`check_model_and_trace`](@ref) for more details on supported keyword arguments
402
- and details of which types of checks are performed.
399
+ Check that `model` is valid, warning about any potential issues (or erroring if
400
+ `error_on_failure` is `true`).
403
401
404
402
# Returns
405
403
- `issuccess::Bool`: Whether the model check succeeded.
406
404
"""
407
- check_model (model:: Model , varinfo:: AbstractVarInfo = VarInfo (model) ; error_on_failure= false ) =
405
+ check_model (model:: Model , varinfo:: AbstractVarInfo ; error_on_failure= false ) =
408
406
first (check_model_and_trace (model, varinfo; error_on_failure= error_on_failure))
409
407
410
408
# Convenience method used to check if all elements in a list are the same.
@@ -421,7 +419,7 @@ function all_the_same(xs)
421
419
end
422
420
423
421
"""
424
- has_static_constraints([rng, ]model::Model; num_evals=5, kwargs... )
422
+ has_static_constraints([rng, ]model::Model; num_evals=5, error_on_failure=false )
425
423
426
424
Return `true` if the model has static constraints, `false` otherwise.
427
425
You can’t perform that action at this time.
0 commit comments