MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / clear

Method clear

include/core/solver.h:1332–1341  ·  view source on GitHub ↗

Free GPU memory */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

reallocateMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected