You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FFI][Runtime] Use TVMValue::v_int64 to represent boolean values (#17240)
* [FFI][Runtime] Use TVMValue::v_int64 to represent boolean values
This is a follow-up to #16183, which
added handling of boolean values in the TVM FFI. The initial
implementation added both a new type code (`kTVMArgBool`) and a new
`TVMValue::v_bool` variant. This commit removes the
`TVMValue::v_bool` variant, since the `kTVMArgBool` type code is
sufficient to handle boolean arguments.
Removing the `TVMValue::v_bool` variant also makes all `TVMValue`
variants be 64-bit (assuming a 64-bit CPU). This can simplify
debugging in some cases, since it prevents partial values from
inactive variants from being present in memory.
* Update MakePackedAPI, less special handling required for boolean
0 commit comments