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

Method resize

include/base/memory.h:137–141  ·  view source on GitHub ↗

Resize the memory space. Reallocate only if the capacity is not enough. */

Source from the content-addressed store, hash-verified

135
136 /** Resize the memory space. Reallocate only if the capacity is not enough. */
137 void resize(Index _count) {
138 if (_count > capacity || (capacity && *refer_count > 1))
139 reallocate(_count);
140 count = _count;
141 }
142
143 /** Copy the memory space to GPU */
144 void to_device(Index copy_count = 0) {

Callers 8

buildMethod · 0.80
predictMethod · 0.80
predict_numpyMethod · 0.80
buildMethod · 0.80
sampleMethod · 0.80
buildMethod · 0.80
predictMethod · 0.80
flattenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected