We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39201c1 commit 8eb1e2aCopy full SHA for 8eb1e2a
1 file changed
src/instantiate.jl
@@ -181,8 +181,10 @@ function instantiate(
181
cache_only_if_incremental_interface_not_supported = true
182
end
183
if cache_only_if_incremental_interface_not_supported &&
184
- !supports_incremental_interface(optimizer)
185
- with_cache_type = nothing
+ supports_incremental_interface(optimizer)
+ with_cache_type = nothing
186
+ end
187
+ if !isnothing(with_cache_type)
188
cache = default_cache(optimizer, with_cache_type)
189
optimizer = Utilities.CachingOptimizer(cache, optimizer)
190
0 commit comments