| 562 | } |
| 563 | return weight; |
| 564 | } |
| 565 | |
| 566 | std::vector<float> l2_normalized_rows( |
| 567 | std::vector<float> values, |
| 568 | int64_t rows, |
| 569 | int64_t cols, |
| 570 | const std::string & name) { |
| 571 | if (rows <= 0 || cols <= 0 || static_cast<int64_t>(values.size()) != rows * cols) { |
no test coverage detected