MCPcopy Create free account
hub / github.com/apache/tvm-ffi / reserve

Method reserve

include/tvm/ffi/container/array.h:532–536  ·  view source on GitHub ↗

! * \brief Make sure the list has the capacity of at least n * \param n lower bound of the capacity */

Source from the content-addressed store, hash-verified

530 * \param n lower bound of the capacity
531 */
532 void reserve(int64_t n) {
533 if (data_ == nullptr || n > static_cast<int64_t>(GetArrayObj()->SeqBaseObj::capacity())) {
534 SwitchContainer(n);
535 }
536 }
537
538 /*! \brief Release reference to all the elements */
539 void clear() {

Callers 1

AgregateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected