Free GPU memory */
| 1330 | |
| 1331 | /** Free GPU memory */ |
| 1332 | void clear() { |
| 1333 | embeddings.clear(); |
| 1334 | gradients.clear(); |
| 1335 | moments.clear(); |
| 1336 | batch.reallocate(0); |
| 1337 | negative_batch.reallocate(0); |
| 1338 | loss.reallocate(0); |
| 1339 | random.reallocate(0); |
| 1340 | negative_sampler.clear(); |
| 1341 | } |
| 1342 | |
| 1343 | /** |
| 1344 | * @brief Load an embedding matrix and its moment matrices to GPU cache |
nothing calls this directly
no test coverage detected