|
tvm
|
Value casting helpers. More...
#include <tvm/ffi/any.h>#include <tvm/ffi/cast.h>#include <tvm/ffi/dtype.h>#include <tvm/ffi/error.h>#include <tvm/ffi/object.h>#include <tvm/ffi/optional.h>#include <utility>Go to the source code of this file.
Namespaces | |
| tvm | |
| Performance counters for profiling via the PAPI library. | |
Functions | |
| template<typename SubRef , typename BaseRef , typename = std::enable_if_t<std::is_base_of_v<ffi::ObjectRef, BaseRef>>> | |
| SubRef | tvm::Downcast (BaseRef ref) |
| Downcast a base reference type to a more specific type. More... | |
| template<typename T > | |
| T | tvm::Downcast (const ffi::Any &ref) |
| Downcast any to a specific type. More... | |
| template<typename T > | |
| T | tvm::Downcast (ffi::Any &&ref) |
| Downcast any to a specific type. More... | |
| template<typename OptionalType , typename = std::enable_if_t<ffi::is_optional_type_v<OptionalType>>> | |
| OptionalType | tvm::Downcast (const std::optional< ffi::Any > &ref) |
| Downcast std::optional<Any> to std::optional<T> More... | |
Value casting helpers.