MCPcopy Create free account

hub / github.com/apache/tvm-ffi / functions

Functions5,333 in github.com/apache/tvm-ffi

↓ 457 callersMethodsize
! * \brief Return the length of the string * * \return size_t string length */
include/tvm/ffi/string.h:321
↓ 387 callersMethodconvert
include/tvm/ffi/container/list.h:252
↓ 283 callersMethodArray
constructors ! * \brief Construct an Array with UnsafeInit */
include/tvm/ffi/container/array.h:223
↓ 261 callersMethodsame_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 callersMethodappend
Append one value to the tail.
python/tvm_ffi/container.py:362
↓ 231 callersFunctionRecursiveHash
(_0: Any, /)
python/tvm_ffi/_ffi_api.py:104
↓ 175 callersFunction_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 callersMethodpush_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 callersMethoddata
! * \brief Return the data pointer * * \return const char* data pointer */
include/tvm/ffi/string.h:327
↓ 139 callersFunctionRecursiveEq
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:101
↓ 136 callersMethodMap
! * \brief Construct an Map with UnsafeInit */
include/tvm/ffi/container/map.h:76
↓ 133 callersFunctionStructuralEqual
(_0: Any, _1: Any, _2: bool, _3: bool, /)
python/tvm_ffi/_ffi_api.py:110
↓ 128 callersMethodhas_value
! \brief Alias for is_ok(). */
include/tvm/ffi/expected.h:127
↓ 123 callersMethodSet
! * \brief set the Map. * \param key The index key. * \param value The value to be setted. */
include/tvm/ffi/container/map.h:230
↓ 112 callersMethodfind
! * \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 callersMethodvalue
! \brief Returns the success value, or throws the contained error. */
include/tvm/ffi/expected.h:130
↓ 110 callersFunctionS
Shorthand constructor for TypeSchema (string-based).
tests/python/test_type_converter.py:61
↓ 106 callersMethodList
! \brief Construct a List with UnsafeInit */
include/tvm/ffi/container/list.h:149
↓ 105 callersMethoddtype
(&self)
rust/tvm-ffi/src/collections/tensor.rs:208
↓ 92 callersFunctionParse
src/ffi/extra/json_parser.cc:728
↓ 92 callersMethodend
! \return end iterator */
include/tvm/ffi/container/map.h:241
↓ 90 callersMethodDict
! * \brief Construct a Dict with UnsafeInit */
include/tvm/ffi/container/dict.h:80
↓ 90 callersFunctionReprPrint
(_0: Any, /)
python/tvm_ffi/_ffi_api.py:107
↓ 86 callersMethodcompare
! * \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 callersMethoduse_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 callersMethodget_function
Get function from the module. Parameters ---------- name The name of the function query_imports
python/tvm_ffi/module.py:172
↓ 80 callersMethodget
(self, key: K)
python/tvm_ffi/container.py:618
↓ 76 callersFunctionRecursiveLt
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:106
↓ 71 callersFunctionFromJSONGraph
(_0: Any, /)
python/tvm_ffi/_ffi_api.py:55
↓ 70 callersFunction_check_dtype
(dtype: Any, code: int, bits: int, lanes: int)
tests/python/test_dtype.py:90
↓ 70 callersMethoddata_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 callersMethodbegin
! \return begin iterator */
include/tvm/ffi/container/map.h:239
↓ 67 callersMethodempty
! * \brief Retun if the string is empty * * \return true if empty, false otherwise. */
include/tvm/ffi/string.h:603
↓ 66 callersFunctionToJSONGraph
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:115
↓ 62 callersMethodtype_index
(&self)
rust/tvm-ffi/src/any.rs:52
↓ 58 callersMethoderase
! * \brief Erase the entry associated with the key * \param key The key */
include/tvm/ffi/container/map.h:257
↓ 57 callersMethodemplace_back
include/tvm/ffi/container/list.h:334
↓ 52 callersFunctionStableHashCombine
include/tvm/ffi/base_details.h:252
↓ 48 callersMethodcount
! \return The number of elements of the key */
include/tvm/ffi/container/map.h:212
↓ 48 callersFunctionfield
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 callersMethodadd
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 callersMethodcreate_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 callersFunctionentry
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 callersMethodkind
(self)
tests/python/test_typed_method.py:127
↓ 46 callersMethodfn
Return the function name for a given base name.
addons/tvm_ffi_orcjit/tests/test_basic.py:119
↓ 46 callersMethoditems
Get the items from the map.
python/tvm_ffi/container.py:601
↓ 45 callersMethodCopyToTVMFFIAny
include/tvm/ffi/string.h:239
↓ 45 callersFunctionStringify
src/ffi/extra/json_writer.cc:273
↓ 44 callersMethodroot
Create a root access path. Returns ------- AccessPath A path representing the root of an object graph.
python/tvm_ffi/access_path.py:114
↓ 43 callersFunction_unique_key
(base: str)
tests/python/test_dataclass_enum.py:42
↓ 42 callersMethodreserve
! * \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 callersMethodget
Return the variant named *name*, or raise :class:`KeyError`.
python/tvm_ffi/dataclasses/enum.py:473
↓ 39 callersFunctionStructuralHash
(_0: Any, _1: bool, _2: bool, /)
python/tvm_ffi/_ffi_api.py:111
↓ 39 callersMethod__new__
(cls, content: Any)
python/tvm_ffi/_dtype.py:93
↓ 38 callersFunctionTVMFFIGetTypeInfo
src/ffi/object.cc:596
↓ 38 callersMethodinsert
Insert value before index.
python/tvm_ffi/container.py:353
↓ 38 callersFunctionmake_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 callersMethodTestIntPair
Constructor
src/ffi/testing/testing.cc:63
↓ 34 callersFunction_roundtrip
Serialize then deserialize and return the result.
tests/python/test_serialization.py:33
↓ 34 callersMethoddevice
(&self)
rust/tvm-ffi/src/collections/tensor.rs:212
↓ 34 callersMethodindex
(&self, index: usize)
rust/tvm-ffi/src/collections/array.rs:179
↓ 33 callersMethodget
include/tvm/ffi/container/tuple.h:146
↓ 32 callersFunctioncreate_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 callersMethodget
! * \return Get the content of the pointer */
include/tvm/ffi/object.h:530
↓ 32 callersMethodstarts_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 callersMethodAttr
include/tvm/ffi/reflection/access_path.h:387
↓ 31 callersFunction_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 callersMethodattr
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 callersMethodas_slice
Get the bytes as a slice
rust/tvm-ffi/src/string.rs:66
↓ 29 callersMethodclone
(&self)
rust/tvm-ffi/src/any.rs:211
↓ 28 callersMethodShape
! \brief Default constructor */
include/tvm/ffi/container/shape.h:201
↓ 28 callersMethodmessage
Get the message of the error # Returns The message of the error
rust/tvm-ffi/src/error.rs:128
↓ 27 callersMethodndim
(&self)
rust/tvm-ffi/src/collections/tensor.rs:196
↓ 26 callersMethodextend
Append elements from an iterable.
python/tvm_ffi/container.py:382
↓ 26 callersFunctionunpack_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 callersMethodrun
include/tvm/ffi/base_details.h:232
↓ 25 callersMethodshape
(&self)
rust/tvm-ffi/src/collections/tensor.rs:192
↓ 24 callersFunctionauto
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 callersFunctionputs_log
addons/tvm_ffi_orcjit/tests/sources/c/test_ctor_dtor.c:32
↓ 23 callersFunctionEmpty
tests/cpp/test_tensor.cc:31
↓ 23 callersFunctionobj
Return path to a pre-built test object file, or skip if missing.
addons/tvm_ffi_orcjit/tests/test_basic.py:50
↓ 23 callersFunctionstructural_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 callersMethodwhat
! * \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 callersFunction_make_multi_type_obj
()
tests/python/test_dataclass_py_class.py:4681
↓ 21 callersMethodback
! \return The last element of the list */
include/tvm/ffi/container/list.h:310
↓ 21 callersFunctionbenchmark_unpack
Benchmark an unpack function on a single value.
tests/scripts/benchmark_unpack_dataclass.py:32
↓ 21 callersFunctionget
include/tvm/ffi/container/tuple.h:357
↓ 21 callersMethodresize
! * \brief Resize the list. * \param n The new size. */
include/tvm/ffi/container/list.h:410
↓ 21 callersMethodsize
! \return The size of the array */
include/tvm/ffi/container/map.h:207
↓ 21 callersFunctionstructural_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 callersMethodadd
(self, a: int, b: int)
tests/python/utils/test_kwargs_wrapper.py:62
↓ 20 callersMethodc_str
! * \brief Returns a pointer to the char array in the string. * * \return const char* */
include/tvm/ffi/string.h:523
↓ 20 callersFunctionfields
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 callersMethodis_ok
! \brief Returns true if the Expected contains a success value. */
include/tvm/ffi/expected.h:117
↓ 20 callersFunctionto_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 callersFunctionmake_lib
Create a library and load one or more object files into it.
addons/tvm_ffi_orcjit/tests/test_basic.py:58
↓ 19 callersMethodrepr
! * \brief Constructor. * \param show Whether the field should appear in repr output. */
include/tvm/ffi/reflection/registry.h:264
↓ 18 callersMethodArrayItem
include/tvm/ffi/reflection/access_path.h:395
↓ 18 callersFunctionCopyFromTVMFFIAny
! * \return Create an AnyView from TVMFFIAny * \param data the underlying ffi data. */
include/tvm/ffi/any.h:185
↓ 18 callersMethodMutableBegin
\cond Doxygen_Suppress
include/tvm/ffi/container/seq_base.h:231
next →1–100 of 5,333, ranked by callers