File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 931
931
932
932
Evaluate the `model` with the arguments matching the given `context` and `varinfo` object.
933
933
"""
934
- function _evaluate!! (model:: Model , varinfo:: AbstractVarInfo , context:: AbstractContext )
934
+ @noinline function _evaluate!! (
935
+ model:: Model , varinfo:: AbstractVarInfo , context:: AbstractContext
936
+ )
937
+ # NOTE(penelopeysm): This @noinline is a workaround for
938
+ # https://github.com/EnzymeAD/Enzyme.jl/issues/2337 and only really affects
939
+ # the smallest models (e.g. those with a single parameter), as larger
940
+ # models are already not inlined. This call can be removed once that issue
941
+ # is fixed.
935
942
args, kwargs = make_evaluate_args_and_kwargs (model, varinfo, context)
936
943
return model. f (args... ; kwargs... )
937
944
end
You can’t perform that action at this time.
0 commit comments