Re-exports§
pub use crate::any::Any;pub use crate::any::AnyView;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::function::Function;pub use crate::object::Object;pub use crate::object::ObjectArc;pub use crate::object::ObjectCore;pub use crate::object::ObjectCoreWithExtraItems;pub use crate::object::ObjectRefCore;pub use crate::string::Bytes;pub use crate::string::String;pub use crate::type_traits::AnyCompatible;pub use tvm_ffi_sys;
Modules§
Macros§
- attach_
context - Attach a context to a result if it is error
- bail
- Create a new error with file/line info attached
- 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_
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
- 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.