Skip to content

Commit

Permalink
[Serving] Fix graph initialization in add model (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronha committed Jan 5, 2021
1 parent a207597 commit 82b805e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlrun/runtimes/serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def add_model(
"""
graph = self.spec.graph
if not graph:
self.set_topology()
graph = self.set_topology()

if graph.kind != StateKinds.router:
raise ValueError("models can only be added under router state")
Expand Down

0 comments on commit 82b805e

Please sign in to comment.