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

Method ObjectRefFromObjectPtr

include/tvm/ffi/object.h:1115–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113
1114 template <typename T>
1115 TVM_FFI_INLINE static T ObjectRefFromObjectPtr(const ObjectPtr<Object>& ptr) {
1116 T ref(UnsafeInit{});
1117 ref.data_ = ptr;
1118 return ref;
1119 }
1120
1121 template <typename T>
1122 TVM_FFI_INLINE static T ObjectRefFromObjectPtr(ObjectPtr<Object>&& ptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected