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

Method clear

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

! \brief Release reference to all the elements */

Source from the content-addressed store, hash-verified

537
538 /*! \brief Release reference to all the elements */
539 void clear() {
540 if (data_ != nullptr) {
541 ArrayObj* p = CopyOnWrite();
542 p->clear();
543 }
544 }
545 /// \cond Doxygen_Suppress
546 template <typename... Args>
547 static size_t CalcCapacityImpl() {

Callers 1

AssignMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected