Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions crates/onnx-runtime-shape-inference/tests/op_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,18 @@ fn assert_symbolic(dim: &DimExpr) {
#[test]
fn expanded_registry_catalog_count_is_pinned() {
let registry = InferenceRegistry::default_registry();
assert_eq!(registry.operator_count(), 220);
assert_eq!(registry.entry_count(), 265);
assert_eq!(
registry.operator_count(),
221,
"registry operator count moved; if you added or removed a handler, say so by \
updating this pin in the same commit -- an unbumped pin reds every lane in the repo"
);
assert_eq!(
registry.entry_count(),
266,
"registry entry count moved; one operator can carry several opset entries, so this \
number does not always move in step with the operator count"
);
}

fn recurrent_node(op: &str, outputs: usize, direction: &str, hidden_size: i64) -> Node {
Expand Down
Loading