Skip to content

Commit

Permalink
FIX(net): new Ops invalidate execution-plan cache...
Browse files Browse the repository at this point in the history
Probaly unreported bug in v1.2.4 for '_neccessary_steps_cache`.
  • Loading branch information
ankostis committed Oct 3, 2019
1 parent c570a18 commit 2ce2a43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphkit/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def add_op(self, operation):
# assert layer is only added once to graph
assert operation not in self.graph.nodes(), "Operation may only be added once"

## Invalidate old plans.
self._cached_execution_plans = {}

# add nodes and edges to graph describing the data needs for this layer
for n in operation.needs:
self.graph.add_edge(DataPlaceholderNode(n), operation)
Expand Down

0 comments on commit 2ce2a43

Please sign in to comment.