tvm
|
Type traits for runtime type check during FFI conversion. More...
#include <packed_func.h>
Static Public Member Functions | |
static Optional< String > | CheckAndGetMismatch (const Object *ptr) |
Check if an object matches the template type and return the mismatched type if it exists. More... | |
static bool | Check (const Object *ptr) |
Check if an object matches the template type. More... | |
static std::string | TypeName () |
Type traits for runtime type check during FFI conversion.
T | the type to be checked. |
|
inlinestatic |
Check if an object matches the template type.
ptr | The object to check the type of. |
|
inlinestatic |
Check if an object matches the template type and return the mismatched type if it exists.
ptr | The object to check the type of. |
|
inlinestatic |