Template Function tvm::ffi::Merge

Template Function tvm::ffi::Merge#

Function Documentation#

template<typename K, typename V, typename = typename std::enable_if_t<details::storage_enabled_v<K> && details::storage_enabled_v<V>>>
inline Map<K, V> tvm::ffi::Merge(Map<K, V> lhs, const Map<K, V> &rhs)#

Merge two Maps.

Parameters:
  • lhs – the first Map to merge.

  • rhs – the second Map to merge.

Returns:

The merged Array. Original Maps are kept unchanged.