Skip to content

Commit

Permalink
fix lstm
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Aug 28, 2020
1 parent c76a76e commit e1c6499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nnef/src/ops/core/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ fn ser_scan(ast: &mut IntoAst, node: &TypedNode) -> TractResult<Option<Arc<RValu
("full", array(full)),
("state", array(state)),
("output", array(outputs)),
("skip", numeric(op.skip)),
],
);
ast.fragments.insert(body.decl.id.clone(), body);
Expand Down Expand Up @@ -217,6 +218,7 @@ fn de_scan(
state: state.iter().any(|state| state.2 == output_name),
});
}
let op = Scan::new(body.model, input_mapping, output_mapping, None)?;
let skip:usize = invocation.named_arg_as(builder, "skip")?;
let op = Scan::new(body.model, input_mapping, output_mapping, Some(skip))?;
builder.wire(op, &*outer_inputs)
}

0 comments on commit e1c6499

Please sign in to comment.