Skip to content

Commit

Permalink
Change assert to account for new outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
kunal-vaishnavi committed Feb 26, 2025
1 parent 91a9c9d commit 8c5f2fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pp_api_test/test_feature_extraction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ TEST(ExtractorTest, TestPhi4AudioFeatureExtraction) {
err = OrtxTensorResultGetAt(result.get(), 1, tensor.ToBeAssigned());
ASSERT_EQ(err, kOrtxOK);
err = OrtxGetTensorData(tensor.get(), reinterpret_cast<const void**>(&data), &shape, &num_dims);
ASSERT_EQ(num_dims, 1);
ASSERT_EQ(num_dims, 2);
ASSERT_EQ(std::vector<int64_t>(shape, shape + num_dims), std::vector<int64_t>({3}));
const float* actual_output = reinterpret_cast<const float*>(data);
ASSERT_FLOAT_EQ(actual_output[0], 138.0f);
Expand Down Expand Up @@ -100,7 +100,7 @@ TEST(ExtractorTest, TestPhi4AudioFeatureExtraction8k) {
err = OrtxTensorResultGetAt(result.get(), 1, tensor.ToBeAssigned());
ASSERT_EQ(err, kOrtxOK);
err = OrtxGetTensorData(tensor.get(), reinterpret_cast<const void**>(&data), &shape, &num_dims);
ASSERT_EQ(num_dims, 1);
ASSERT_EQ(num_dims, 2);
ASSERT_EQ(std::vector<int64_t>(shape, shape + num_dims), std::vector<int64_t>({1}));
}

Expand Down

0 comments on commit 8c5f2fb

Please sign in to comment.