Re-exports§
pub use crate::any::Any;pub use crate::any::AnyView;pub use crate::collections::array::Array;pub use crate::collections::map::Map;pub use crate::collections::shape::Shape;pub use crate::collections::tensor::CPUNDAlloc;pub use crate::collections::tensor::NDAllocator;pub use crate::collections::tensor::Tensor;pub use crate::device::current_stream;pub use crate::device::with_stream;pub use crate::dtype::DLDataTypeExt;pub use crate::error::Error;pub use crate::error::ErrorKind;pub use crate::error::Result;pub use crate::error::ATTRIBUTE_ERROR;pub use crate::error::INDEX_ERROR;pub use crate::error::KEY_ERROR;pub use crate::error::RUNTIME_ERROR;pub use crate::error::TYPE_ERROR;pub use crate::error::VALUE_ERROR;pub use crate::extra::module::Module;pub use crate::extra::structural_mutate::structural_map;pub use crate::extra::structural_mutate::structural_mutate;pub use crate::extra::structural_mutate::CallbackMutator;pub use crate::extra::structural_mutate::InplaceValue;pub use crate::extra::structural_mutate::IntoMapper;pub use crate::extra::structural_mutate::IntoMutator;pub use crate::extra::structural_mutate::MapChainLink;pub use crate::extra::structural_mutate::MapDispatch;pub use crate::extra::structural_mutate::MapValue;pub use crate::extra::structural_mutate::MutateCallbacks;pub use crate::extra::structural_mutate::MutateChainLink;pub use crate::extra::structural_mutate::MutateContext;pub use crate::extra::structural_mutate::MutateDispatch;pub use crate::extra::structural_mutate::Mutator;pub use crate::extra::structural_mutate::StructuralMutator;pub use crate::extra::structural_mutate::StructuralVarRemap;pub use crate::extra::structural_visit::structural_visit;pub use crate::extra::structural_visit::structural_walk;pub use crate::extra::structural_visit::DefRegionKind;pub use crate::extra::structural_visit::IntoVisitor;pub use crate::extra::structural_visit::IntoWalkResult;pub use crate::extra::structural_visit::IntoWalker;pub use crate::extra::structural_visit::StructuralVisitor;pub use crate::extra::structural_visit::VisitCallbacks;pub use crate::extra::structural_visit::VisitChainLink;pub use crate::extra::structural_visit::VisitContext;pub use crate::extra::structural_visit::VisitInterrupt;pub use crate::extra::structural_visit::VisitValue;pub use crate::extra::structural_visit::WalkChainLink;pub use crate::extra::structural_visit::WalkDispatch;pub use crate::extra::structural_visit::WalkOrder;pub use crate::extra::structural_visit::WalkResult;pub use crate::extra::unchanged::Unchanged;pub use crate::extra::unchanged::UnchangedOr;pub use crate::function::Function;pub use crate::object::ObjectRefCast;pub use crate::object::Object;pub use crate::object::ObjectArc;pub use crate::object::ObjectCore;pub use crate::object::ObjectCoreWithExtraItems;pub use crate::object::ObjectIdentity;pub use crate::object::ObjectRefCore;pub use crate::optional::Optional;pub use crate::optional::OptionalCompatible;pub use crate::reflection::get_type_attr;pub use crate::reflection::FieldGetter;pub use crate::reflection::TypeAttrColumn;pub use crate::rvalue_ref::RValueRef;pub use crate::string::Bytes;pub use crate::string::String;pub use crate::type_traits::AnyCompatible;pub use tvm_ffi_sys;
Modules§
- any
- collections
- derive
- device
- dtype
- error
- extra
- function
- function_
internal - macros
- object
- optional
- In-place mirror of C++
ffi::Optional<T>for non-object-pointerT(include/tvm/ffi/optional.h). - reflection
- Safe access to object reflection metadata.
- rvalue_
ref - Move-aware object arguments compatible with C++
ffi::RValueRef<T>. - string
- type_
traits
Macros§
- attach_
context - Attach a context to a result if it is error
- bail
- Create a new error with file/line info attached
- cached_
global_ func - Resolves a registered global
Functionby name and caches it for the lifetime of the process (lock-free after the first lookup). Each call site gets its own cache and the macro evaluates to a&'static Function. Panics — naming the function — if it is not registered. - check_
safe_ call - Check the return code of the safe call
- ensure
- Create a new error with file/line info attached
- function_
name - Macro gto get the name of the function
- impl_
arg_ into_ ref - Macro to implement ArgIntoRef for a list of types
- impl_
into_ arg_ holder_ default - Macro to implement IntoArgHolder for a list of types
- impl_
object_ upcast - Implement zero-copy conversions from a derived object reference to one of its base object-reference types.
- impl_
try_ from_ any - Macro to implement
TryFrom<AnyView>andTryFrom<Any>for a list of types - impl_
try_ from_ any_ for_ parametric - Macro to implement
TryFrom<AnyView>andTryFrom<Any>for generic types likeOption<T> - into_
typed_ fn
- match_
any - Match object-backed values carried by an Any-compatible scrutinee.
- tvm_
ffi_ dll_ export_ typed_ func - Macro to export a typed function as a C symbol that follows the tvm-ffi ABI
Structs§
- DLData
Type - DLPack data type struct
- DLDevice
- TVMFFI
Any - TVM FFI Any value - a union type that can hold various data types
- TVMFFI
Object
Enums§
- DLData
Type Code - DLPack data type code enum
- DLDevice
Type - Type
Index - The index type of the FFI objects
Type Aliases§
- TVMFFI
Stream Handle - The type of the stream handle.
Attribute Macros§
- dispatch
- Generate
walk,map,visit, ormutatedispatch from an inherent impl.