Skip to content

Commit

Permalink
ack deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed May 28, 2024
1 parent 1e7201f commit 5430882
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion harness/lstm-proptest-onnx-vs-tf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ impl LstmProblem {
let model = self.tf_model()?;
let lstm_id = model.node_by_name("lstm")?.id;
let memo_id = model.node_by_name("memo")?.id;
let plan_run = SimplePlan::new_for_outputs(
let plan_run = SimplePlan::build(
&model,
&[OutletId::new(lstm_id, 6), OutletId::new(memo_id, 0)],
&[],
&PlanOptions::default(),
)?;
let mut state = SimpleState::new(plan_run)?;
let y = state.run(tvec!(self.x.clone()))?.remove(0);
Expand Down
4 changes: 3 additions & 1 deletion harness/tf-moz-deepspeech/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ fn deepspeech_raw() -> TractResult<()> {
let assign_2 = model.node_id_by_name("Assign_2")?;
let assign_3 = model.node_id_by_name("Assign_3")?;

let plan = SimplePlan::new_for_outputs(
let plan = SimplePlan::build(
model,
&[logits.into(), (lstm, 1).into(), (lstm, 6).into(), assign_2.into(), assign_3.into()],
&[],
&PlanOptions::default(),
)?;

let mut state = SimpleState::new(plan)?;
Expand Down

0 comments on commit 5430882

Please sign in to comment.