| 556 | throw std::runtime_error("Vevo2 weight-norm tensor has zero norm: " + prefix); |
| 557 | } |
| 558 | const float scale = static_cast<float>(static_cast<double>(g[static_cast<size_t>(out)]) / norm); |
| 559 | for (int64_t i = 0; i < row_size; ++i) { |
| 560 | weight[static_cast<size_t>(base + i)] = v[static_cast<size_t>(base + i)] * scale; |
| 561 | } |
| 562 | } |
| 563 | return weight; |
| 564 | } |
| 565 |
no test coverage detected