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
↓ 8 callers
Function
add_one
(_0: int, /)
examples/python_packaging/python/my_ffi_extension/_ffi_api.py:36
↓ 8 callers
Method
begin
! \return begin iterator */
include/tvm/ffi/container/array.h:355
↓ 8 callers
Method
byte_offset
! * \brief Get the byte offset of the Tensor. * \return The byte offset of the Tensor. */
include/tvm/ffi/container/tensor.h:367
↓ 8 callers
Method
data
! \return The arguments */
include/tvm/ffi/function.h:274
↓ 8 callers
Method
is_prefix_of
Check if this access path is a prefix of another access path. Parameters ---------- other The access path to chec
python/tvm_ffi/access_path.py:137
↓ 8 callers
Function
load_module
Load module from file. Parameters ---------- path The path to the module file. keep_module_alive Whether to keep the
python/tvm_ffi/module.py:438
↓ 8 callers
Function
register_error
Register an error class so it can be recognized by the ffi error handler. Parameters ---------- name_or_cls The name of the error
python/tvm_ffi/error.py:205
↓ 8 callers
Method
size
! * \brief Return the size of the shape tuple * * \return size_t shape tuple size */
include/tvm/ffi/container/shape.h:268
↓ 8 callers
Method
type_index
! \return the internal type index */
include/tvm/ffi/any.h:255
↓ 7 callers
Function
CallFieldSetter
! * \brief Call the field setter, dispatching between function pointer and FunctionObj. * * When kTVMFFIFieldFlagBitSetterIsFunctionObj is off, inv
include/tvm/ffi/reflection/accessor.h:66
↓ 7 callers
Method
CopyString
src/ffi/object.cc:452
↓ 7 callers
Function
EscapeStringJSON
! * \brief Return a JSON-escaped version of the string (RFC 8259). * * Uses ``\\uXXXX`` for control characters, escapes ``\\/``, ``\\b``, ``\\f`` p
include/tvm/ffi/string.h:836
↓ 7 callers
Method
GetTypeKeyHash
! * \return A hash value of the return of GetTypeKey. */
include/tvm/ffi/object.h:243
↓ 7 callers
Method
IsSmallMap
! * \brief Check if the map is a small map * \return True if the map is a small map */
include/tvm/ffi/container/map_base.h:260
↓ 7 callers
Method
MatchLiteral
! * \brief Check if the next characters match the given string. * \param str The string to match. * \param len The length of the string. *
src/ffi/extra/json_parser.cc:103
↓ 7 callers
Method
MoveToNext
! \brief Move the entry to the next entry on the linked list */
include/tvm/ffi/container/map_base.h:999
↓ 7 callers
Method
Product
! \return The product of the shape tuple */
include/tvm/ffi/container/shape.h:305
↓ 7 callers
Function
TVMFFIFunctionGetGlobal
src/ffi/function.cc:177
↓ 7 callers
Function
_build_variant
Build all test objects for one compiler variant.
addons/tvm_ffi_orcjit/tests/utils.py:95
↓ 7 callers
Function
_dev_top_directory
Get the top-level development directory.
python/tvm_ffi/libinfo.py:369
↓ 7 callers
Function
_resolve_and_validate
For all paths that resolve properly, find the 1st one that meets the specified condition. M. B. This code path gracefully handles broken paths, s
python/tvm_ffi/libinfo.py:374
↓ 7 callers
Method
array_item
Create an access path to the item of the current array. Parameters ---------- index The index of the item to acce
python/tvm_ffi/access_path.py:185
↓ 7 callers
Method
as_slice
Get the shape as a slice
rust/tvm-ffi/src/collections/shape.rs:62
↓ 7 callers
Method
as_str
(&self)
rust/tvm-ffi/src/error.rs:33
↓ 7 callers
Method
at
! * \brief Read element from map. * \param key The key * \return the corresonding element. */
include/tvm/ffi/container/map.h:197
↓ 7 callers
Method
clear_free_slabs
Release drained slabs (no live JIT allocations) back to the OS. Call this after dropping a batch of libraries to reclaim RSS. Fresh s
addons/tvm_ffi_orcjit/python/tvm_ffi_orcjit/session.py:114
↓ 7 callers
Method
end
! \return end iterator */
include/tvm/ffi/container/array.h:358
↓ 7 callers
Method
funcs2_obj
Return path prefix for test_funcs2 object.
addons/tvm_ffi_orcjit/tests/test_basic.py:87
↓ 7 callers
Function
get_global_func
(name: str, allow_missing: Literal[True])
python/tvm_ffi/registry.py:177
↓ 7 callers
Method
has_value
include/tvm/ffi/optional.h:320
↓ 7 callers
Method
pop
Remove and return item at index (default last).
python/tvm_ffi/container.py:374
↓ 6 callers
Function
AddressStr
! * \brief Format an object address as a hex string. */
src/ffi/extra/dataclass.cc:618
↓ 6 callers
Method
GetBlock
include/tvm/ffi/container/map_base.h:446
↓ 6 callers
Function
IsContiguous
! * \brief check if a DLTensor is contiguous. * \param arr The input DLTensor. * \return The check result. */
include/tvm/ffi/container/tensor.h:57
↓ 6 callers
Function
MoveFromSafeCallRaised
! * \brief Move the last raised safe-call error from TLS. * \return The raised error object. */
include/tvm/ffi/error.h:324
↓ 6 callers
Function
_is_comparable
Return True if *self* and *other* share a type hierarchy.
python/tvm_ffi/_dunder.py:360
↓ 6 callers
Function
_make_nan_from_payload
Create a quiet NaN with a deterministic payload.
tests/python/test_dataclass_hash.py:44
↓ 6 callers
Function
_str_seq2list
(seq: Sequence[str] | str | None)
python/tvm_ffi/cpp/extension.py:655
↓ 6 callers
Method
as_strided
! * \brief Create a new Tensor as a strided view of the current Tensor. * \param shape The shape of the new Tensor. * \param strides The stri
include/tvm/ffi/container/tensor.h:388
↓ 6 callers
Function
echo
(x: Any)
tests/python/test_function.py:166
↓ 6 callers
Method
from_begin_line
Parse a line to create a CodeBlock if it contains a stub begin marker.
python/tvm_ffi/stub/file_utils.py:63
↓ 6 callers
Method
from_schema
Construct a `FuncInfo` from a name and its type schema.
python/tvm_ffi/stub/utils.py:152
↓ 6 callers
Function
get
include/tvm/ffi/object.h:1026
↓ 6 callers
Method
iter
(&'_ self)
rust/tvm-ffi/src/collections/array.rs:157
↓ 6 callers
Method
operator->
! * \return The pointer */
include/tvm/ffi/object.h:534
↓ 6 callers
Function
print_speed
(name: str, speed: float)
tests/scripts/benchmark_kwargs_wrapper.py:28
↓ 6 callers
Method
release
Releases the lock and closes the file descriptor.
python/tvm_ffi/utils/lockfile.py:148
↓ 6 callers
Function
replace
Return a copy of ``obj`` with selected fields replaced. Drop-in for :func:`dataclasses.replace` for FFI-backed instances: the call is forward
python/tvm_ffi/dataclasses/common.py:92
↓ 6 callers
Method
swap
! * \brief Swap this String with another string * \param other The other string */
include/tvm/ffi/string.h:306
↓ 6 callers
Method
to_steps
Convert the access path to a list of access steps. Returns ------- access_steps The list of access steps
python/tvm_ffi/access_path.py:249
↓ 5 callers
Method
CompareAny
src/ffi/extra/dataclass.cc:1229
↓ 5 callers
Function
Concat
include/tvm/ffi/container/array.h:859
↓ 5 callers
Method
FullMessage
! * \brief Get the full message of the error, including kind, message and traceback. * \return The full message of the error object. */
include/tvm/ffi/error.h:278
↓ 5 callers
Function
GetMethodInfo
! * \brief helper function to get reflection method info by type key and method name * * \param type_key The type key. * \param method_name The na
include/tvm/ffi/reflection/accessor.h:204
↓ 5 callers
Method
GetSymbol
src/ffi/extra/library_module_dynamic_lib.cc:52
↓ 5 callers
Method
IsContiguous
! * \brief Check if the Tensor is contiguous. * \return True if the Tensor is contiguous, false otherwise. */
include/tvm/ffi/container/tensor.h:372
↓ 5 callers
Method
MapItemMissing
include/tvm/ffi/reflection/access_path.h:407
↓ 5 callers
Function
ParseMetadataToSchema
tests/cpp/test_metadata.cc:54
↓ 5 callers
Method
Read
! * \brief Reads raw from stream. * \param ptr pointer to the data to be read * \param size the size of the data to be read * \return the
src/ffi/extra/buffer_stream.h:56
↓ 5 callers
Method
SetItem
! * \brief Set i-th element of the sequence in-place * \param i The index * \param item The value to be set */
include/tvm/ffi/container/seq_base.h:127
↓ 5 callers
Method
Split
! * \brief Split the string by a delimiter character. * \param delim The delimiter character. * \return A vector of string_views pointing int
include/tvm/ffi/string.h:748
↓ 5 callers
Method
String
! * \brief avoid misuse of nullptr */
include/tvm/ffi/string.h:407
↓ 5 callers
Function
TVMFFITypeKeyToIndex
src/ffi/object.cc:548
↓ 5 callers
Method
TestNonCopyable
src/ffi/testing/testing.cc:270
↓ 5 callers
Method
__ffi_init__
(self, x: int)
tests/python/test_dataclass_py_class.py:4873
↓ 5 callers
Function
_add_class_attrs
(type_cls: type, type_info: TypeInfo)
python/tvm_ffi/registry.py:399
↓ 5 callers
Method
_finalize
Register fields and install class attrs (phase 2 of two-phase).
tests/python/test_dataclass_py_class.py:3133
↓ 5 callers
Function
_find_new_mappings
Find mappings present in *after* but not in *before*.
addons/tvm_ffi_orcjit/tests/test_memory_manager.py:227
↓ 5 callers
Method
_register_bare
Register a type with no fields (phase 1 of two-phase).
tests/python/test_dataclass_py_class.py:3125
↓ 5 callers
Function
_split_env_var
Split an environment variable string. Parameters ---------- env_var Name of environment variable. split String to sp
python/tvm_ffi/libinfo.py:342
↓ 5 callers
Function
_transform_expr
(name: str, expr: str)
python/tvm_ffi/utils/kwargs_wrapper.py:167
↓ 5 callers
Function
_warn_missing_field_annotations
Emit a warning if any C++ reflected fields lack Python annotations on *cls*. Only checks fields owned by *type_info* (not inherited from parents)
python/tvm_ffi/registry.py:456
↓ 5 callers
Method
acquire
Acquire an exclusive, non-blocking lock on the file. Returns ------- ret: bool True if the lock was acquired, Fal
python/tvm_ffi/utils/lockfile.py:73
↓ 5 callers
Function
block_nearby_va
Block all free VA gaps within *radius* of *center*. Uses MAP_FIXED_NOREPLACE to place PROT_NONE mappings in every free gap within [center - r
addons/tvm_ffi_orcjit/tests/test_memory_manager.py:234
↓ 5 callers
Function
embed_cubin
Embed a CUBIN file into an existing object file. This function takes a CUBIN binary file and merges it into an existing object file that cont
python/tvm_ffi/utils/embed_cubin.py:50
↓ 5 callers
Function
fapply
(f: Any, *args: Any)
tests/python/test_function.py:157
↓ 5 callers
Function
free_blockers
Free all VA blockers.
addons/tvm_ffi_orcjit/tests/test_memory_manager.py:268
↓ 5 callers
Method
gen_fields
Generate field definitions for this object.
python/tvm_ffi/stub/utils.py:269
↓ 5 callers
Method
get_function_doc
Get documentation string for a function exported from the module. This retrieves documentation for functions exported via c:macro:`TVM_FFI_DL
python/tvm_ffi/module.py:241
↓ 5 callers
Function
get_global_func_metadata
Get metadata (including type schema) for a global function. Parameters ---------- name The name of the global function. Retu
python/tvm_ffi/registry.py:270
↓ 5 callers
Method
is_empty
(&self)
rust/tvm-ffi/src/collections/array.rs:131
↓ 5 callers
Method
numel
(&self)
rust/tvm-ffi/src/collections/tensor.rs:60
↓ 5 callers
Method
rbegin
! \return rbegin iterator */
include/tvm/ffi/container/list.h:266
↓ 5 callers
Method
rend
! \return rend iterator */
include/tvm/ffi/container/list.h:268
↓ 4 callers
Method
Append
src/ffi/backtrace_utils.h:151
↓ 4 callers
Method
Bytes
! \brief default constructor */
include/tvm/ffi/string.h:270
↓ 4 callers
Function
CreateEmptyObject
! * \brief Create an empty object via the type's native creator or ``__ffi_new__`` type attr. * * Falls back to the ``__ffi_new__`` type attribute
include/tvm/ffi/reflection/creator.h:43
↓ 4 callers
Method
DestructData
! \brief Destruct the item in the entry */
include/tvm/ffi/container/map_base.h:975
↓ 4 callers
Function
Dict
(*args: Any)
python/tvm_ffi/_ffi_api.py:46
↓ 4 callers
Method
EmplaceInit
include/tvm/ffi/container/seq_base.h:236
↓ 4 callers
Method
GetFunction
src/ffi/extra/module.cc:61
↓ 4 callers
Method
GetOrAllocTypeIndex
src/ffi/object.cc:122
↓ 4 callers
Method
InitData
include/tvm/ffi/string.h:780
↓ 4 callers
Method
IsNone
! \brief If the entry is none */
include/tvm/ffi/container/map_base.h:967
↓ 4 callers
Function
Run
examples/stable_c_abi/src/load.c:32
↓ 4 callers
Function
SetFieldToDefault
! * \brief Set a field to its default value, calling the factory if applicable. * * When kTVMFFIFieldFlagBitMaskDefaultFromFactory is set, extracts
include/tvm/ffi/reflection/accessor.h:241
↓ 4 callers
Method
SetJump
! \brief Set the entry's jump to its next entry */
include/tvm/ffi/container/map_base.h:984
↓ 4 callers
Function
TVMFFIBacktrace
src/ffi/backtrace.cc:119
↓ 4 callers
Function
TVMFFIErrorMoveFromRaised
src/ffi/error.cc:96
↓ 4 callers
Method
ToDLPackVersioned
! * \brief Convert the Tensor to a DLPack managed tensor. * \return The converted DLPack managed tensor. */
include/tvm/ffi/container/tensor.h:615
← previous
next →
201–300 of 5,333, ranked by callers