library comile complete and begin tests
Some checks failed
CI/CD Pipeline / Create Release Package (push) Has been cancelled
CI/CD Pipeline / Code Linting (push) Has been cancelled
CI/CD Pipeline / Build and Test (Debug, clang, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Debug, gcc, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-20.04) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-20.04) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Docker Build Test (push) Has been cancelled
CI/CD Pipeline / Performance Benchmarks (push) Has been cancelled
CI/CD Pipeline / Build Documentation (push) Has been cancelled

This commit is contained in:
2025-06-23 12:05:35 +02:00
parent e07eb4d2ed
commit 7b27d5c1f3
9 changed files with 361 additions and 172 deletions

View File

@@ -283,7 +283,7 @@ TEST_CASE("SVMClassifier Prediction", "[integration][svm_classifier]")
REQUIRE(predictions.size(0) == X_test.size(0));
// Check that predictions are valid class labels
auto unique_preds = torch::unique(predictions);
auto unique_preds = std::get<0>(at::_unique(predictions));
for (int i = 0; i < unique_preds.size(0); ++i) {
int pred_class = unique_preds[i].item<int>();
auto classes = svm.get_classes();