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

Method CopyFrom

include/tvm/ffi/container/map_base.h:1349–1353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347 */
1348 template <typename MapObjType>
1349 static ObjectPtr<Object> CopyFrom(SmallMapBaseObj* from) {
1350 KVType* first = static_cast<KVType*>(from->data_);
1351 KVType* last = first + from->size_;
1352 return CreateFromRange<MapObjType>(from->size_, first, last);
1353 }
1354 /*!
1355 * \brief InsertMaybeReHash an entry into the given hash map
1356 * \param kv The entry to be inserted

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected