Skip to content

Commit

Permalink
no weights testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
samutamm committed Oct 1, 2024
1 parent 4190e75 commit 0fcf2b1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion alt_e2eshark/onnx_tests/operators/tfidf_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,21 @@
"min_gram_length": 1,
"max_gram_length": 2,
"max_skip_count": 5,
"ngram_counts":[0,4],
"ngram_counts":[0,1],
"pool_int64s": [2, 3, 5, 4, 5, 6, 7, 8, 6, 7],
"ngram_indexes": [0, 2, 4, 5, 6, 7, 8, 9],
"weights": [0.0, 0.15, 0.1, 1.0, 1.0, 7.0, 2.0, 0.0],
},
"unigram_bigram_no_weights": {
"n": 4,
"min_gram_length": 1,
"max_gram_length": 2,
"max_skip_count": 2,
"ngram_counts":[0,2],
"pool_int64s": [2, 3, 5, 4, 5, 6, 7, 8, 6, 7],
"ngram_indexes": [0, 2, 4, 5, 6, 7, 8, 9],
"weights": None,
},
}

def create_vectorizer_node(
Expand Down

0 comments on commit 0fcf2b1

Please sign in to comment.