We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69e03a commit 585027bCopy full SHA for 585027b
HISTORY.md
@@ -4,6 +4,8 @@
4
5
`varinfo[:]` now returns an empty vector if `varinfo::DynamicPPL.NTVarInfo` is empty, rather than erroring.
6
7
+In its place, `check_model` now issues a warning if the model is empty.
8
+
9
## 0.36.4
10
11
Added compatibility with DifferentiationInterface.jl 0.7, and also with JET.jl 0.10.
src/debug_utils.jl
@@ -338,6 +338,11 @@ function conditioned_varnames(context)
338
end
339
340
function check_varnames_seen(varnames_seen::AbstractDict{VarName,Int})
341
+ if isempty(varnames_seen)
342
+ @warn "The model does not contain any parameters."
343
+ return true
344
+ end
345
346
issuccess = true
347
for (varname, count) in varnames_seen
348
if count == 0
0 commit comments