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

Method clear

include/core/solver.h:805–815  ·  view source on GitHub ↗

Free CPU and GPU memory, except the embeddings on CPU */

Source from the content-addressed store, hash-verified

803
804 /** Free CPU and GPU memory, except the embeddings on CPU */
805 virtual void clear() {
806 decltype(moments)().swap(moments);
807 decltype(head_partitions)().swap(head_partitions);
808 decltype(tail_partitions)().swap(tail_partitions);
809 decltype(sample_pools)().swap(sample_pools);
810 edge_table.clear();
811 for (auto &&sampler : samplers)
812 sampler->clear();
813 for (auto &&worker : workers)
814 worker->clear();
815 }
816
817 /**
818 * @param protocols protocols of embeddings

Callers 1

clearMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected