Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/tvm-ffi
/ functions
Functions
5,333 in github.com/apache/tvm-ffi
⨍
Functions
5,333
◇
Types & classes
1,261
↳
Endpoints
2
↓ 457 callers
Method
size
! * \brief Return the length of the string * * \return size_t string length */
include/tvm/ffi/string.h:321
↓ 387 callers
Method
convert
include/tvm/ffi/container/list.h:252
↓ 283 callers
Method
Array
constructors ! * \brief Construct an Array with UnsafeInit */
include/tvm/ffi/container/array.h:223
↓ 261 callers
Method
same_as
! * \brief Check if the two Any are same type and value in shallow comparison. * \param other The other Any * \return True if the two Any are
include/tvm/ffi/any.h:453
↓ 258 callers
Method
append
Append one value to the tail.
python/tvm_ffi/container.py:362
↓ 231 callers
Function
RecursiveHash
(_0: Any, /)
python/tvm_ffi/_ffi_api.py:104
↓ 175 callers
Function
_make_type
Create, register, and fully set up a Python-defined TVM-FFI type. Returns the ready-to-use Python class.
tests/python/test_dataclass_py_class.py:67
↓ 146 callers
Method
push_back
mutation in std::vector ! * \brief push a new item to the back of the list * \param item The item to be pushed. */
include/tvm/ffi/container/list.h:324
↓ 145 callers
Method
data
! * \brief Return the data pointer * * \return const char* data pointer */
include/tvm/ffi/string.h:327
↓ 139 callers
Function
RecursiveEq
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:101
↓ 136 callers
Method
Map
! * \brief Construct an Map with UnsafeInit */
include/tvm/ffi/container/map.h:76
↓ 133 callers
Function
StructuralEqual
(_0: Any, _1: Any, _2: bool, _3: bool, /)
python/tvm_ffi/_ffi_api.py:110
↓ 128 callers
Method
has_value
! \brief Alias for is_ok(). */
include/tvm/ffi/expected.h:127
↓ 123 callers
Method
Set
! * \brief set the Map. * \param key The index key. * \param value The value to be setted. */
include/tvm/ffi/container/map.h:230
↓ 112 callers
Method
find
! * \brief Find the first occurrence of a substring * \param str The substring to search for * \param pos The position at which to start the
include/tvm/ffi/string.h:628
↓ 111 callers
Method
value
! \brief Returns the success value, or throws the contained error. */
include/tvm/ffi/expected.h:130
↓ 110 callers
Function
S
Shorthand constructor for TypeSchema (string-based).
tests/python/test_type_converter.py:61
↓ 106 callers
Method
List
! \brief Construct a List with UnsafeInit */
include/tvm/ffi/container/list.h:149
↓ 105 callers
Method
dtype
(&self)
rust/tvm-ffi/src/collections/tensor.rs:208
↓ 92 callers
Function
Parse
src/ffi/extra/json_parser.cc:728
↓ 92 callers
Method
end
! \return end iterator */
include/tvm/ffi/container/map.h:241
↓ 90 callers
Method
Dict
! * \brief Construct a Dict with UnsafeInit */
include/tvm/ffi/container/dict.h:80
↓ 90 callers
Function
ReprPrint
(_0: Any, /)
python/tvm_ffi/_ffi_api.py:107
↓ 86 callers
Method
compare
! * \brief Compares this String object to other * * \param other The String to compare with. * * \return zero if both char sequences co
include/tvm/ffi/string.h:540
↓ 86 callers
Method
use_count
! * \return The usage count of the cell. * \note We use STL style naming to be consistent with known API in shared_ptr. */
include/tvm/ffi/object.h:268
↓ 85 callers
Method
get_function
Get function from the module. Parameters ---------- name The name of the function query_imports
python/tvm_ffi/module.py:172
↓ 80 callers
Method
get
(self, key: K)
python/tvm_ffi/container.py:618
↓ 76 callers
Function
RecursiveLt
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:106
↓ 71 callers
Function
FromJSONGraph
(_0: Any, /)
python/tvm_ffi/_ffi_api.py:55
↓ 70 callers
Function
_check_dtype
(dtype: Any, code: int, bits: int, lanes: int)
tests/python/test_dtype.py:90
↓ 70 callers
Method
data_ptr
Get the data pointer of the Tensor # Returns `*mut core::ffi::c_void` - The data pointer of the Tensor
rust/tvm-ffi/src/collections/tensor.rs:98
↓ 67 callers
Method
begin
! \return begin iterator */
include/tvm/ffi/container/map.h:239
↓ 67 callers
Method
empty
! * \brief Retun if the string is empty * * \return true if empty, false otherwise. */
include/tvm/ffi/string.h:603
↓ 66 callers
Function
ToJSONGraph
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:115
↓ 62 callers
Method
type_index
(&self)
rust/tvm-ffi/src/any.rs:52
↓ 58 callers
Method
erase
! * \brief Erase the entry associated with the key * \param key The key */
include/tvm/ffi/container/map.h:257
↓ 57 callers
Method
emplace_back
include/tvm/ffi/container/list.h:334
↓ 52 callers
Function
StableHashCombine
include/tvm/ffi/base_details.h:252
↓ 48 callers
Method
count
! \return The number of elements of the key */
include/tvm/ffi/container/map.h:212
↓ 48 callers
Function
field
Customize a field in a ``@py_class``-decorated class. Returns a :class:`Field` sentinel whose *name* and *_ty_schema* are ``None``. The ``@p
python/tvm_ffi/dataclasses/field.py:193
↓ 47 callers
Method
add
Add an object file to this dynamic library. Parameters ---------- object_file : str or Path Path to the object fi
addons/tvm_ffi_orcjit/python/tvm_ffi_orcjit/dylib.py:43
↓ 47 callers
Method
create_library
Create a new dynamic library associated with this execution session. Args: name: Optional name for the library. If empty, a uniqu
addons/tvm_ffi_orcjit/python/tvm_ffi_orcjit/session.py:99
↓ 47 callers
Function
entry
Declare a new enum variant with values for its declared fields. ``entry(...)`` is a class-body sentinel; it never produces a real instance.
python/tvm_ffi/dataclasses/enum.py:107
↓ 47 callers
Method
kind
(self)
tests/python/test_typed_method.py:127
↓ 46 callers
Method
fn
Return the function name for a given base name.
addons/tvm_ffi_orcjit/tests/test_basic.py:119
↓ 46 callers
Method
items
Get the items from the map.
python/tvm_ffi/container.py:601
↓ 45 callers
Method
CopyToTVMFFIAny
include/tvm/ffi/string.h:239
↓ 45 callers
Function
Stringify
src/ffi/extra/json_writer.cc:273
↓ 44 callers
Method
root
Create a root access path. Returns ------- AccessPath A path representing the root of an object graph.
python/tvm_ffi/access_path.py:114
↓ 43 callers
Function
_unique_key
(base: str)
tests/python/test_dataclass_enum.py:42
↓ 42 callers
Method
reserve
! * \brief Make sure the list has the capacity of at least n * \param n lower bound of the capacity */
include/tvm/ffi/container/list.h:421
↓ 41 callers
Method
get
Return the variant named *name*, or raise :class:`KeyError`.
python/tvm_ffi/dataclasses/enum.py:473
↓ 39 callers
Function
StructuralHash
(_0: Any, _1: bool, _2: bool, /)
python/tvm_ffi/_ffi_api.py:111
↓ 39 callers
Method
__new__
(cls, content: Any)
python/tvm_ffi/_dtype.py:93
↓ 38 callers
Function
TVMFFIGetTypeInfo
src/ffi/object.cc:596
↓ 38 callers
Method
insert
Insert value before index.
python/tvm_ffi/container.py:353
↓ 38 callers
Function
make_kwargs_wrapper
Create a wrapper with kwargs support for a function that only accepts positional arguments. This function dynamically generates a wrapper using c
python/tvm_ffi/utils/kwargs_wrapper.py:214
↓ 35 callers
Method
TestIntPair
Constructor
src/ffi/testing/testing.cc:63
↓ 34 callers
Function
_roundtrip
Serialize then deserialize and return the result.
tests/python/test_serialization.py:33
↓ 34 callers
Method
device
(&self)
rust/tvm-ffi/src/collections/tensor.rs:212
↓ 34 callers
Method
index
(&self, index: usize)
rust/tvm-ffi/src/collections/array.rs:179
↓ 33 callers
Method
get
include/tvm/ffi/container/tuple.h:146
↓ 32 callers
Function
create_object
Make an object by reflection. Parameters ---------- type_key The type key of the object. kwargs The keyword arguments
python/tvm_ffi/testing/testing.py:163
↓ 32 callers
Method
get
! * \return Get the content of the pointer */
include/tvm/ffi/object.h:530
↓ 32 callers
Method
starts_with
! * \brief Check if the string starts with a prefix * \param prefix The prefix to check for * \return true if the string starts with prefix,
include/tvm/ffi/string.h:668
↓ 31 callers
Method
Attr
include/tvm/ffi/reflection/access_path.h:387
↓ 31 callers
Function
_ffi_init
Look up __ffi_init__ from the TypeAttrColumn and call it via __init_handle_by_constructor__.
tests/python/test_dataclass_init.py:56
↓ 30 callers
Method
attr
Create an access path to the attribute of the current object. Parameters ---------- attr_key The key of the attri
python/tvm_ffi/access_path.py:153
↓ 29 callers
Method
as_slice
Get the bytes as a slice
rust/tvm-ffi/src/string.rs:66
↓ 29 callers
Method
clone
(&self)
rust/tvm-ffi/src/any.rs:211
↓ 28 callers
Method
Shape
! \brief Default constructor */
include/tvm/ffi/container/shape.h:201
↓ 28 callers
Method
message
Get the message of the error # Returns The message of the error
rust/tvm-ffi/src/error.rs:128
↓ 27 callers
Method
ndim
(&self)
rust/tvm-ffi/src/collections/tensor.rs:196
↓ 26 callers
Method
extend
Append elements from an iterable.
python/tvm_ffi/container.py:382
↓ 26 callers
Function
unpack_dataclass_to_tuple
Fast recursively unpack a dataclass value to tuple representation. - Dataclass instances are unpacked to tuples of their field values. - List
python/tvm_ffi/utils/unpack_dataclass.py:204
↓ 25 callers
Method
run
include/tvm/ffi/base_details.h:232
↓ 25 callers
Method
shape
(&self)
rust/tvm-ffi/src/collections/tensor.rs:192
↓ 24 callers
Function
auto
Declare a new enum variant with no declared fields. Semantically equivalent to :func:`entry` called with no arguments but reads more clearly
python/tvm_ffi/dataclasses/enum.py:156
↓ 24 callers
Function
puts_log
addons/tvm_ffi_orcjit/tests/sources/c/test_ctor_dtor.c:32
↓ 23 callers
Function
Empty
tests/cpp/test_tensor.cc:31
↓ 23 callers
Function
obj
Return path to a pre-built test object file, or skip if missing.
addons/tvm_ffi_orcjit/tests/test_basic.py:50
↓ 23 callers
Function
structural_hash
Compute structural hash of a value. This hash is designed to be consistent with :py:func:`structural_equal` under the same options. If two va
python/tvm_ffi/structural.py:88
↓ 23 callers
Method
what
! * \brief Get the error message * \return The error message * \note To get the full message including kind and traceback, use FullMessage()
include/tvm/ffi/error.h:290
↓ 21 callers
Function
_make_multi_type_obj
()
tests/python/test_dataclass_py_class.py:4681
↓ 21 callers
Method
back
! \return The last element of the list */
include/tvm/ffi/container/list.h:310
↓ 21 callers
Function
benchmark_unpack
Benchmark an unpack function on a single value.
tests/scripts/benchmark_unpack_dataclass.py:32
↓ 21 callers
Function
get
include/tvm/ffi/container/tuple.h:357
↓ 21 callers
Method
resize
! * \brief Resize the list. * \param n The new size. */
include/tvm/ffi/container/list.h:410
↓ 21 callers
Method
size
! \return The size of the array */
include/tvm/ffi/container/map.h:207
↓ 21 callers
Function
structural_equal
Check structural equality between two values. Structural equality compares the *shape/content structure* of two values instead of Python obje
python/tvm_ffi/structural.py:39
↓ 20 callers
Method
add
(self, a: int, b: int)
tests/python/utils/test_kwargs_wrapper.py:62
↓ 20 callers
Method
c_str
! * \brief Returns a pointer to the char array in the string. * * \return const char* */
include/tvm/ffi/string.h:523
↓ 20 callers
Function
fields
Return the :class:`~tvm_ffi.dataclasses.Field` descriptors for a type. Accepts a ``@c_class`` / ``@py_class`` type or instance and walks the
python/tvm_ffi/dataclasses/common.py:60
↓ 20 callers
Method
is_ok
! \brief Returns true if the Expected contains a success value. */
include/tvm/ffi/expected.h:117
↓ 20 callers
Function
to_json_graph_str
Dump an object to a JSON graph string. The JSON graph is a textual representation of the object graph that preserves shared references. It ca
python/tvm_ffi/serialization.py:31
↓ 19 callers
Function
make_lib
Create a library and load one or more object files into it.
addons/tvm_ffi_orcjit/tests/test_basic.py:58
↓ 19 callers
Method
repr
! * \brief Constructor. * \param show Whether the field should appear in repr output. */
include/tvm/ffi/reflection/registry.h:264
↓ 18 callers
Method
ArrayItem
include/tvm/ffi/reflection/access_path.h:395
↓ 18 callers
Function
CopyFromTVMFFIAny
! * \return Create an AnyView from TVMFFIAny * \param data the underlying ffi data. */
include/tvm/ffi/any.h:185
↓ 18 callers
Method
MutableBegin
\cond Doxygen_Suppress
include/tvm/ffi/container/seq_base.h:231
next →
1–100 of 5,333, ranked by callers