Skip to content

Commit

Permalink
Update inspect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dilaragokay committed May 5, 2022
1 parent 558563c commit 17d2488
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyro/infer/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ def render_model(
assert model_args is None or isinstance(
model_args, tuple
), "model_args must be None or tuple"
assert model_kwargs is None or isinstance(
model_kwargs, dict
), "model_kwargs must be None or dict"
relations = get_model_relations(model, model_args, model_kwargs)
graph_spec = generate_graph_specification(relations, render_params=render_params)
graph = render_graph(graph_spec, render_distributions=render_distributions)
Expand Down

0 comments on commit 17d2488

Please sign in to comment.