Skip to content

Commit

Permalink
Accidentally removed OneHot and ReduceArgmax from subterm
Browse files Browse the repository at this point in the history
  • Loading branch information
BradenEverson authored Apr 4, 2024
1 parent a3e2c7c commit d77efc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/graph/subterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ impl Context {
}
Operation::ReduceMax { node, dim: _ }
| Operation::ReduceMean { node, dim: _ }
| Operation::ReduceArgmax { node, dim: _ }
| Operation::ReduceSum { node, dim: _ } => {
to_visit.push(node);
}
Expand All @@ -73,6 +74,7 @@ impl Context {
to_visit.push(on_true);
to_visit.push(on_false);
}
Operation::OneHot(node) => to_visit.push(node),
Operation::Constant(_) | Operation::Parameter(_) => {}
}
node_map.insert(self.nodes[node_id].clone(), node_id);
Expand Down

0 comments on commit d77efc0

Please sign in to comment.