Skip to content

Commit

Permalink
wrong cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Jan 10, 2024
1 parent 2adcc18 commit 55eb00d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ tract.out
proptest-regressions
/tmp
wheelhouse
target-bisector*
2 changes: 1 addition & 1 deletion libcli/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub trait Model:
if let Some(hir) = self.node_op(id).downcast_ref::<tract_hir::ops::scan::InferenceScan>() {
return vec![("loop".into(), &hir.body)];
}
#[cfg(feature = "hir")]
#[cfg(feature = "onnx")]
if let Some(hir) = self.node_op(id).downcast_ref::<tract_onnx::ops::logic::If>() {
return vec![("then".into(), &hir.then_body), ("else".into(), &hir.else_body)];
}
Expand Down

0 comments on commit 55eb00d

Please sign in to comment.