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
↓ 4 callers
Function
UpdateVisitErrorContext
! * \brief Implementation helper for TVM_FFI_VISIT_END(node). * Calling convention may change; do not call directly from user code. */
include/tvm/ffi/extra/visit_error_context.h:223
↓ 4 callers
Method
__dlpack__
(self)
tests/python/test_type_converter.py:3425
↓ 4 callers
Method
__repr__
(self)
tests/python/test_dataclass_py_class.py:996
↓ 4 callers
Function
_attach_field_objects
Populate ``TypeField.dataclass_field`` for every own reflected field. ``@c_class`` fields originate from C++ reflection, so there is no user-
python/tvm_ffi/dataclasses/c_class.py:32
↓ 4 callers
Function
_build_big_object
Compile a .c file with a large `.rodata` blob to force the oversize path. Returns the path to the generated .o file. Skips the test if the build
addons/tvm_ffi_orcjit/tests/test_basic.py:734
↓ 4 callers
Function
_decorate_with_tvm_ffi
Decorate the given source code with TVM FFI export macros.
python/tvm_ffi/cpp/extension.py:630
↓ 4 callers
Function
_fake_torch_module
( *, cuda_available: bool, cuda_version: str | None = None, hip_version: str | None = None,
tests/python/test_optional_torch_c_dlpack.py:43
↓ 4 callers
Function
_find_library_by_basename
Find a shared library by target_name name across known directories. Parameters ---------- package The package name where the libr
python/tvm_ffi/libinfo.py:228
↓ 4 callers
Function
_find_method
Return the ``TypeMethod`` entry for ``name`` or :data:`None`.
tests/python/test_typed_method.py:39
↓ 4 callers
Function
_find_rocm_home
Find the ROCm install path.
python/tvm_ffi/cpp/extension.py:210
↓ 4 callers
Function
_install_dataclass_dunders
Install structural dunder methods on *cls*. Each dunder delegates to the corresponding C++ recursive structural operation (``RecursiveEq``, `
python/tvm_ffi/_dunder.py:244
↓ 4 callers
Function
_is_ffi_dataclass_instance
Return True when *obj* is a ``@c_class`` / ``@py_class`` **instance** (not a type).
python/tvm_ffi/dataclasses/common.py:103
↓ 4 callers
Function
_make_nan_from_payload
Create a quiet NaN with a deterministic payload.
tests/python/test_dataclass_compare.py:39
↓ 4 callers
Function
_unique_key
(base: str)
tests/python/test_dataclass_py_class.py:46
↓ 4 callers
Method
begin
! \return begin iterator */
include/tvm/ffi/container/shape.h:299
↓ 4 callers
Function
bench_torch_get_current_stream
Measures overhead of running torch.cuda.current_stream.
tests/scripts/benchmark_dlpack.py:395
↓ 4 callers
Function
bench_tvm_ffi_nop_autodlpack
Measures overhead of running dlpack via auto convert by directly take torch.Tensor as inputs.
tests/scripts/benchmark_dlpack.py:228
↓ 4 callers
Function
callback
(x: Any, expected_count: int)
tests/python/test_function.py:183
↓ 4 callers
Method
capacity
! \return The capacity of the list */
include/tvm/ffi/container/list.h:292
↓ 4 callers
Function
dec_ref
(handle: *mut TVMFFIObject)
rust/tvm-ffi/src/object.rs:148
↓ 4 callers
Method
extra_context
! * \brief Get the extra context of the error object. * \return The extra context of the error object. */
include/tvm/ffi/error.h:214
↓ 4 callers
Method
find
! \return find the key and returns the associated iterator */
include/tvm/ffi/container/map.h:243
↓ 4 callers
Function
find_dlpack_include_path
Find dlpack header files for C compilation.
python/tvm_ffi/libinfo.py:100
↓ 4 callers
Method
gen
Generate a function signature string for this function.
python/tvm_ffi/stub/utils.py:156
↓ 4 callers
Function
gen_check_stream_mod
()
tests/python/test_stream.py:50
↓ 4 callers
Function
generate_global_funcs
Generate function signatures for global functions. It processes: global/${prefix}@${import_from="tvm_ffi")
python/tvm_ffi/stub/codegen.py:49
↓ 4 callers
Method
hash
(&self, state: &mut H)
rust/tvm-ffi/src/string.rs:202
↓ 4 callers
Method
is_contiguous
Check if the Tensor is contiguous # Returns `bool` - True if the Tensor is contiguous, false otherwise
rust/tvm-ffi/src/collections/tensor.rs:112
↓ 4 callers
Method
keys
Return a dynamic view of the dict's keys.
python/tvm_ffi/container.py:730
↓ 4 callers
Function
normalize_index
Normalize and bounds-check a Python index.
python/tvm_ffi/container.py:157
↓ 4 callers
Method
size
! \return size of the arguments */
include/tvm/ffi/function.h:271
↓ 4 callers
Function
strong_count
(handle: *mut TVMFFIObject)
rust/tvm-ffi/src/object.rs:189
↓ 4 callers
Method
swap
! * \brief Swap this array with another Object * \param other The other Object */
include/tvm/ffi/object.h:524
↓ 4 callers
Method
types_obj
Return path prefix for test_types object.
addons/tvm_ffi_orcjit/tests/test_basic.py:99
↓ 3 callers
Function
CallMetadataFunc
Helper to call metadata FFI functions and return the String result
tests/cpp/test_metadata.cc:50
↓ 3 callers
Function
FastMathSafeIsInf
tests/cpp/extra/test_json_parser.cc:47
↓ 3 callers
Method
FeedChild
src/ffi/extra/dataclass.cc:672
↓ 3 callers
Function
FillStridesFromShape
! * \brief Get the product of a shape. * \param shape The input shape. * \param out_strides The output strides. * \return The product of the shape
include/tvm/ffi/container/shape.h:165
↓ 3 callers
Function
GetBytesData
! \brief Extract raw pointer and length from a Bytes or SmallBytes value. */
src/ffi/extra/dataclass.cc:98
↓ 3 callers
Method
GetDLTensorPtr
! * \brief Get the underlying DLTensor pointer. * \return The underlying DLTensor pointer. */
include/tvm/ffi/container/tensor.h:620
↓ 3 callers
Function
GetFieldByteOffsetToObject
include/tvm/ffi/reflection/registry.h:378
↓ 3 callers
Function
GetMissingObject
src/ffi/object.cc:501
↓ 3 callers
Function
GetStringData
! \brief Extract raw pointer and length from a String or SmallStr value. */
src/ffi/extra/dataclass.cc:84
↓ 3 callers
Method
InitData
include/tvm/ffi/string.h:389
↓ 3 callers
Function
IsAligned
* \brief Check if the data in the DLTensor is aligned to the given alignment. * \param arr The input DLTensor. * \param alignment The alignment to c
include/tvm/ffi/container/tensor.h:88
↓ 3 callers
Function
IsBytesType
! \brief Return true for Bytes or SmallBytes type indices. */
src/ffi/extra/dataclass.cc:79
↓ 3 callers
Function
IsDirectAddressDevice
! * \brief Check if the device uses direct address, where address of data indicate alignment. * \param device The input device. * \return True if t
include/tvm/ffi/container/tensor.h:47
↓ 3 callers
Method
IsHead
! \brief If the entry is head of linked list */
include/tvm/ffi/container/map_base.h:965
↓ 3 callers
Function
IsStringType
! \brief Return true for Str or SmallStr type indices. */
src/ffi/extra/dataclass.cc:74
↓ 3 callers
Function
LoadLibrary
include/tvm/ffi/extra/cuda/internal/unified_api.h:130
↓ 3 callers
Method
MutateByApply
include/tvm/ffi/container/array.h:621
↓ 3 callers
Method
OnTerminate
src/ffi/extra/dataclass.cc:743
↓ 3 callers
Method
PopStep
! \brief Pop the top TempAccessStep; truncate materialized_paths_ to match. */
src/ffi/extra/visit_error_context.cc:249
↓ 3 callers
Method
PushStep
! \brief Append a TempAccessStep to the descent stack; cache unchanged. */
src/ffi/extra/visit_error_context.cc:246
↓ 3 callers
Method
Reserve
! * \brief Ensure the list has at least n slots. * \param n The lower bound of required capacity. * * \note Leak-safety: Any's move constr
include/tvm/ffi/container/list.h:78
↓ 3 callers
Method
Reset
! \brief Clear the container to empty, release all entries and memory acquired */
include/tvm/ffi/container/map_base.h:694
↓ 3 callers
Method
SetEmpty
! \brief Set the entry to be empty */
include/tvm/ffi/container/map_base.h:973
↓ 3 callers
Method
SetErrorInvalidSurrogatePair
src/ffi/extra/json_parser.cc:285
↓ 3 callers
Function
ShouldExcludeFrame
! * \brief List frame patterns that should be excluded as they contain less information */
src/ffi/backtrace_utils.h:56
↓ 3 callers
Function
StableHashSmallStrBytes
! * \brief Same as StableHashBytes, but for small string data. * \param data The data pointer * \return the hash value. */
include/tvm/ffi/base_details.h:350
↓ 3 callers
Function
TVMFFIEnvGetDLPackManagedTensorAllocator
src/ffi/extra/env_context.cc:119
↓ 3 callers
Method
VisitAny
src/ffi/extra/visit_error_context.cc:144
↓ 3 callers
Function
_build_localns
Build the localns dict for resolving ``cls``'s annotations. By default, includes only classes from ``cls.__module__``, preserving standard Py
python/tvm_ffi/dataclasses/py_class.py:381
↓ 3 callers
Function
_build_objects
Compile all sources in *src_dir* to object files in *out_dir*.
addons/tvm_ffi_orcjit/tests/utils.py:68
↓ 3 callers
Function
_collect_py_methods
Extract FFI-registered entries from a ``@py_class`` body. Two sources are collected: 1. **TypeAttrColumn dunders** — names in :data:`_FFI_RE
python/tvm_ffi/dataclasses/py_class.py:331
↓ 3 callers
Method
_column
Return the ``List[Any]`` column for this attribute; create if missing. Returns ``None`` when ``create`` is false and the column doesn't exist
python/tvm_ffi/dataclasses/enum.py:604
↓ 3 callers
Function
_compile_kernel_to_cubin
Compile simple CUDA kernels to CUBIN. Returns the raw CUBIN bytes.
tests/python/test_cubin_launcher.py:59
↓ 3 callers
Function
_create_test_cubin
Create a dummy CUBIN file for testing.
tests/python/utils/test_embed_cubin.py:102
↓ 3 callers
Function
_create_test_object_file
Create a simple test object file with TVM_FFI_EMBED_CUBIN macro usage. We avoid including the full header to prevent CUDA dependency in tests.
tests/python/utils/test_embed_cubin.py:42
↓ 3 callers
Function
_entries_dict
(cls: type)
python/tvm_ffi/dataclasses/enum.py:728
↓ 3 callers
Function
_field_map
(type_cls: type)
tests/python/test_dataclass_init.py:64
↓ 3 callers
Function
_index_payload
Record ``(instance.value → instance)`` in the value-entries column. No-op for non-payload enums. For payload enums, the first writer of a gi
python/tvm_ffi/dataclasses/enum.py:915
↓ 3 callers
Function
_make_int_enum_type
()
tests/python/test_type_converter.py:70
↓ 3 callers
Function
_make_shared_binary_dag
(depth: int)
tests/python/test_dataclass_hash.py:838
↓ 3 callers
Function
_maybe_write
Write content to path if it does not already exist with the same content.
python/tvm_ffi/cpp/extension.py:123
↓ 3 callers
Function
_ordered_entries
Return all variants ordered by ordinal.
python/tvm_ffi/dataclasses/enum.py:750
↓ 3 callers
Method
_ordinal_of
(self, variant: object)
python/tvm_ffi/dataclasses/enum.py:596
↓ 3 callers
Function
_own_annotations
Return *cls*'s own annotations dict (not inherited).
python/tvm_ffi/dataclasses/enum.py:1047
↓ 3 callers
Function
_own_annotations
Return annotations declared directly on *cls*.
python/tvm_ffi/dataclasses/py_class.py:140
↓ 3 callers
Function
_parse_type_schema
Parse a type schema from either a JSON string or an already-parsed dict.
python/tvm_ffi/stub/utils.py:30
↓ 3 callers
Function
_register_fields_into_type
Phase 2: resolve annotations, register fields, install dunders. Returns True on success, False if forward references are unresolved.
python/tvm_ffi/dataclasses/py_class.py:407
↓ 3 callers
Function
_toy_method_resolve
Test helper: resolve a ``"$method:NAME"`` string ref and call it. Parses the ``$method:`` prefix, looks up ``NAME`` in the instance's ``TypeI
tests/python/test_typed_method.py:44
↓ 3 callers
Method
begin
! \return begin iterator */
include/tvm/ffi/container/list.h:262
↓ 3 callers
Function
bench_ffi_nop_from_dlpack
Run dlpack conversion + tvm_ffi.nop. Measures overhead of running dlpack for each args then invoke
tests/scripts/benchmark_dlpack.py:147
↓ 3 callers
Function
bench_to_dlpack
(x: Any, name: str, repeat: int)
tests/scripts/benchmark_dlpack.py:314
↓ 3 callers
Function
bench_to_dlpack_versioned
Measures overhead of running dlpack with latest 1.1.
tests/scripts/benchmark_dlpack.py:324
↓ 3 callers
Method
end
! \return end iterator */
include/tvm/ffi/container/shape.h:302
↓ 3 callers
Method
end
! \return end iterator */
include/tvm/ffi/container/dict.h:246
↓ 3 callers
Method
end
! \return end iterator */
include/tvm/ffi/container/list.h:264
↓ 3 callers
Function
generate_all
Generate an `__all__` variable for the given names.
python/tvm_ffi/stub/codegen.py:200
↓ 3 callers
Method
get
(self, key: K)
python/tvm_ffi/container.py:743
↓ 3 callers
Method
get_property_mask
Get the runtime module property mask. The mapping is stated in ModulePropertyMask. Returns ------- Bitmask of runtime module
python/tvm_ffi/module.py:320
↓ 3 callers
Method
items
Get the items from the dict.
python/tvm_ffi/container.py:738
↓ 3 callers
Method
link_order_caller_obj
Return path prefix for test_link_order_caller object.
addons/tvm_ffi_orcjit/tests/test_basic.py:107
↓ 3 callers
Function
make_cyclic
(v_i64: int)
tests/python/test_structural.py:142
↓ 3 callers
Method
pop
Remove and return value for key, or default if not present.
python/tvm_ffi/container.py:755
↓ 3 callers
Method
reverse
Reverse the list in-place.
python/tvm_ffi/container.py:370
↓ 3 callers
Method
set_link_order
Set the link order for symbol resolution. When resolving symbols, this library will search in the specified libraries in the order pr
addons/tvm_ffi_orcjit/python/tvm_ffi_orcjit/dylib.py:61
↓ 3 callers
Method
size
! \return The size of the array */
include/tvm/ffi/container/array.h:388
↓ 3 callers
Method
size
! \brief Get the size of the shape. */
include/tvm/ffi/container/shape.h:61
← previous
next →
301–400 of 5,333, ranked by callers