File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 66
66
varinfo = DynamicPPL. Experimental. determine_suitable_varinfo (model)
67
67
# They should all result in typed.
68
68
@test varinfo isa DynamicPPL. TypedVarInfo
69
- # But let's also make sure that they're not lying.
69
+ # But let's also make sure that they're not lying by checking the
70
+ # type inference with a typed varinfo.
70
71
f_eval, argtypes_eval = DynamicPPL. DebugUtils. gen_evaluator_call_with_types (
71
- model, varinfo
72
+ model, VarInfo (model)
72
73
)
73
74
JET. test_call (f_eval, argtypes_eval)
74
75
75
76
f_sample, argtypes_sample = DynamicPPL. DebugUtils. gen_evaluator_call_with_types (
76
- model, varinfo , DynamicPPL. SamplingContext ()
77
+ model, VarInfo (model) , DynamicPPL. SamplingContext ()
77
78
)
78
79
JET. test_call (f_sample, argtypes_sample)
79
80
end
You can’t perform that action at this time.
0 commit comments