fix: upgrade deprecated GitHub Actions and remove unwrap
- actions/upload-artifact v3→v4 (v3 deprecated, blocks all CI jobs) - actions/setup-python v4→v5 - actions/download-artifact v3→v4 - github/codeql-action/upload-sarif v2→v3 - codecov/codecov-action v3→v4 - peaceiris/actions-gh-pages v3→v4 - actions/create-release v1→softprops/action-gh-release v2 - Gate Slack notifications on webhook secret presence - Fix k8s compliance check to skip when k8s/ dir missing - Replace unwrap() with match in info_nce_loss_mined Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -859,7 +859,10 @@ pub fn info_nce_loss_mined(
|
||||
return info_nce_loss(embeddings_a, embeddings_b, temperature);
|
||||
}
|
||||
|
||||
let miner = miner.unwrap();
|
||||
let miner = match miner {
|
||||
Some(m) => m,
|
||||
None => return info_nce_loss(embeddings_a, embeddings_b, temperature),
|
||||
};
|
||||
|
||||
// Build similarity matrix for mining
|
||||
let mut sim_matrix = vec![vec![0.0f32; n]; n];
|
||||
|
||||
Reference in New Issue
Block a user