Skip to content

Commit

Permalink
new warning on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Aug 2, 2023
1 parent 0697c08 commit 152f3d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ where
..
} = self;
let plan = plan.borrow();
let model = plan.model().borrow();
let model = plan.model();
for (step, n) in plan.order.iter().enumerate() {
let node = model.node(*n);
trace!("Running step {}, node {}", step, node);
Expand Down Expand Up @@ -483,9 +483,9 @@ where
let plan = plan.borrow();
match states[node] {
Some(ref mut state) => {
state.eval(session_state, plan.borrow().model().nodes()[node].op(), inputs)
state.eval(session_state, plan.model().nodes()[node].op(), inputs)
}
None => plan.borrow().model().nodes()[node].op().eval(inputs),
None => plan.model().nodes()[node].op().eval(inputs),
}
.with_context(|| format!("Evaluating {node:?}"))?
};
Expand Down

0 comments on commit 152f3d6

Please sign in to comment.