@@ -23,11 +23,11 @@ function select_forward_mode_autodiff(
2323    if  warn_check_mode &&  ! (ADTypes. mode (ad) isa  ADTypes. ForwardMode) && 
2424       ! (ADTypes. mode (ad) isa  ADTypes. ForwardOrReverseMode) && 
2525       ! is_finite_differences_backend (ad)
26-         @warn  " The chosen AD backend $(ad)  is not a forward mode AD. Use with caution." 
26+         @warn  lazy " The chosen AD backend $(ad) is not a forward mode AD. Use with caution." 
2727    end 
2828    if  incompatible_backend_and_problem (prob, ad)
2929        adₙ =  select_forward_mode_autodiff (prob, nothing ; warn_check_mode)
30-         @warn  " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
30+         @warn  lazy " The chosen AD backend `$(ad)` does not support the chosen problem. This \
3131               could be because the backend package for the chosen AD isn't loaded. After \ 
3232               running autodiff selection detected `$(adₙ)` as a potential forward mode \ 
3333               backend."  
@@ -50,11 +50,11 @@ function select_reverse_mode_autodiff(
5050    if  warn_check_mode &&  ! (ADTypes. mode (ad) isa  ADTypes. ReverseMode) && 
5151       ! (ADTypes. mode (ad) isa  ADTypes. ForwardOrReverseMode) && 
5252       ! is_finite_differences_backend (ad)
53-         @warn  " The chosen AD backend $(ad)  is not a reverse mode AD. Use with caution." 
53+         @warn  lazy " The chosen AD backend $(ad) is not a reverse mode AD. Use with caution." 
5454    end 
5555    if  incompatible_backend_and_problem (prob, ad)
5656        adₙ =  select_reverse_mode_autodiff (prob, nothing ; warn_check_mode)
57-         @warn  " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
57+         @warn  lazy " The chosen AD backend `$(ad)` does not support the chosen problem. This \
5858               could be because the backend package for the chosen AD isn't loaded. After \ 
5959               running autodiff selection detected `$(adₙ)` as a potential reverse mode \ 
6060               backend."  
7575function  select_jacobian_autodiff (prob:: AbstractNonlinearProblem , ad:: AbstractADType )
7676    if  incompatible_backend_and_problem (prob, ad)
7777        adₙ =  select_jacobian_autodiff (prob, nothing )
78-         @warn  " The chosen AD backend `$(ad) ` does not support the chosen problem. This \
78+         @warn  lazy " The chosen AD backend `$(ad)` does not support the chosen problem. This \
7979               could be because the backend package for the chosen AD isn't loaded. After \ 
8080               running autodiff selection detected `$(adₙ)` as a potential jacobian \ 
8181               backend."  
0 commit comments