Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/tvm/runtime/data_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,15 @@ struct TypeTraits<runtime::DataType> : public TypeTraitsBase {
TVM_FFI_INLINE static void CopyToAnyView(const runtime::DataType& src, TVMFFIAny* result) {
// clear padding part to ensure the equality check can always check the v_uint64 part
result->v_uint64 = 0;
result->zero_padding = 0;
result->type_index = TypeIndex::kTVMFFIDataType;
result->v_dtype = src;
}

TVM_FFI_INLINE static void MoveToAny(runtime::DataType src, TVMFFIAny* result) {
// clear padding part to ensure the equality check can always check the v_uint64 part
result->v_uint64 = 0;
result->zero_padding = 0;
result->type_index = TypeIndex::kTVMFFIDataType;
result->v_dtype = src;
}
Expand Down
Loading