Function tvm::ffi::DeepCopy#
Defined in File dataclass.h
Function Documentation#
-
Any tvm::ffi::DeepCopy(const Any &value)#
Deep copy an ffi::Any value.
Recursively copies the value and all reachable objects in its object graph. Copy-constructible types with
ObjectDefregistration automatically support deep copy. Primitive types, strings, bytes, and Shape are returned as-is (they are immutable). Arrays, Lists, Maps, and Dicts are recursively deep copied. Objects without copy support cause a runtime error.- Parameters:
value – The value to deep copy.
- Returns:
The deep copied value.