@@ -856,17 +856,20 @@ end
856
856
857
857
"""
858
858
evaluate!!(model::Model, varinfo)
859
- evaluate!!(model::Model, varinfo, context)
860
859
861
- Evaluate the `model` with the given `varinfo`. If an extra context stack is
862
- provided, the model's context is inserted into that context stack. See
863
- `combine_model_and_external_contexts`.
860
+ Evaluate the `model` with the given `varinfo`.
864
861
865
862
If multiple threads are available, the varinfo provided will be wrapped in a
866
863
`ThreadSafeVarInfo` before evaluation.
867
864
868
865
Returns a tuple of the model's return value, plus the updated `varinfo`
869
866
(unwrapped if necessary).
867
+
868
+ evaluate!!(model::Model, varinfo, context)
869
+
870
+ When an extra context stack is provided, the model's context is inserted into
871
+ that context stack. See `combine_model_and_external_contexts`. This method is
872
+ deprecated.
870
873
"""
871
874
function AbstractPPL. evaluate!! (model:: Model , varinfo:: AbstractVarInfo )
872
875
return if use_threadsafe_eval (model. context, varinfo)
@@ -924,13 +927,16 @@ end
924
927
925
928
"""
926
929
_evaluate!!(model::Model, varinfo)
927
- _evaluate!!(model::Model, varinfo, context)
928
930
929
- Evaluate the `model` with the given `varinfo`. If an additional `context` is provided,
930
- the model's context is combined with that context.
931
+ Evaluate the `model` with the given `varinfo`.
931
932
932
933
This function does not wrap the varinfo in a `ThreadSafeVarInfo`. It also does not
933
934
reset the log probability of the `varinfo` before running.
935
+
936
+ _evaluate!!(model::Model, varinfo, context)
937
+
938
+ If an additional `context` is provided, the model's context is combined with
939
+ that context before evaluation.
934
940
"""
935
941
function _evaluate!! (model:: Model , varinfo:: AbstractVarInfo )
936
942
args, kwargs = make_evaluate_args_and_kwargs (model, varinfo)
@@ -975,7 +981,7 @@ function combine_model_and_external_contexts(
975
981
end
976
982
977
983
"""
978
- make_evaluate_args_and_kwargs(model, varinfo, context )
984
+ make_evaluate_args_and_kwargs(model, varinfo)
979
985
980
986
Return the arguments and keyword arguments to be passed to the evaluator of the model, i.e. `model.f`e.
981
987
"""
0 commit comments