MCPcopy Create free account

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

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

↓ 18 callersFunctionRecursiveLe
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:105
↓ 18 callersFunctionTVMFFIHandleInitOnce
src/ffi/init_once.cc:59
↓ 18 callersMethodexpired
! \return whether the pointer is nullptr */
include/tvm/ffi/object.h:726
↓ 18 callersMethodfuncs_obj
Return path prefix for test_funcs object.
addons/tvm_ffi_orcjit/tests/test_basic.py:83
↓ 18 callersMethodvalue_or
include/tvm/ffi/expected.h:169
↓ 17 callersMethoderror
! \brief Returns the contained error, or throws RuntimeError if is_ok(). */
include/tvm/ffi/expected.h:146
↓ 17 callersMethodlen
Get the length of the bytes
rust/tvm-ffi/src/string.rs:61
↓ 17 callersMethodswap
! * \brief Swap this Any with another Any * \param other The other Any */
include/tvm/ffi/any.h:253
↓ 16 callersFunctionEnsureTypeAttrColumn
! * \brief Ensure the type attribute column is presented in the system. * * \param name The name of the type attribute. */
include/tvm/ffi/reflection/registry.h:1045
↓ 16 callersFunctionRecursiveGt
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:103
↓ 16 callersFunctionasdict
r"""Return the fields of a ``@c_class`` / ``@py_class`` instance as a new dict. Mirrors :func:`dataclasses.asdict` from the standard library. Th
python/tvm_ffi/dataclasses/common.py:192
↓ 16 callersMethoddata
! * \brief Return the data pointer * * \return const index_type* data pointer */
include/tvm/ffi/container/shape.h:261
↓ 16 callersFunctionobj
Return path to a pre-built test object file, or skip if missing.
addons/tvm_ffi_orcjit/tests/test_memory_manager.py:118
↓ 16 callersMethodstrides
(&self)
rust/tvm-ffi/src/collections/tensor.rs:204
↓ 16 callersMethodsubstr
! * \brief Returns a substring [pos, pos+count) * \param pos The position of the first character to include * \param count The length of the
include/tvm/ffi/string.h:655
↓ 15 callersFunctionEscapedStringPy
! * \brief Return a Python-style escaped string representation. * * Handles ANSI escape sequences, UTF-8 multibyte characters, and standard * C es
include/tvm/ffi/string.h:897
↓ 15 callersFunctionGetDataSize
! * \brief return the total number of bytes needed to store packed data * * \param numel the number of elements in the array * \param dtype the da
include/tvm/ffi/container/tensor.h:104
↓ 15 callersMethodMapItem
include/tvm/ffi/reflection/access_path.h:403
↓ 15 callersMethod__replace__
(self, **changes: object)
tests/python/test_dataclass_py_class.py:1231
↓ 15 callersFunction_extract_dataclass_to_tuple_schema
Extract a DataclassToTupleSchema from a dataclass class using type annotations. Classification per field (conservative: only leaf when certain):
python/tvm_ffi/utils/unpack_dataclass.py:171
↓ 15 callersFunctionastuple
Return the fields of a ``@c_class`` / ``@py_class`` instance as a new tuple. Mirrors :func:`dataclasses.astuple` from the standard library. The
python/tvm_ffi/dataclasses/common.py:225
↓ 15 callersMethodat
! * \brief Read an element. * \param pos The position at which to read the character. * * \return The char at position */
include/tvm/ffi/string.h:611
↓ 15 callersMethodends_with
! * \brief Check if the string ends with a suffix * \param suffix The suffix to check for * \return true if the string ends with suffix, fals
include/tvm/ffi/string.h:704
↓ 15 callersMethodkeys
Return a dynamic view of the map's keys.
python/tvm_ffi/container.py:593
↓ 14 callersMethodIsPrefixOf
include/tvm/ffi/reflection/access_path.h:428
↓ 14 callersMethodSetCurrentPosForBetterErrorMsg
! * \brief Set the current position for better error message * \param pos The new position. * \note implementation can do it as no-op if need
src/ffi/extra/json_parser.cc:78
↓ 14 callersFunctionTVMFFIHandleDeinitOnce
src/ffi/init_once.cc:83
↓ 14 callersMethodlength
! * \brief Return the length of the string * * \return size_t string length */
include/tvm/ffi/string.h:596
↓ 14 callersFunctionprint_speed
(name: str, speed: float)
tests/scripts/benchmark_dlpack.py:63
↓ 13 callersFunctionGetInitAttr
! \brief Look up __ffi_init__ from the TypeAttrColumn (not the method table). */
tests/cpp/test_reflection.cc:33
↓ 13 callersMethodGetListObj
! \return The underlying ListObj */
include/tvm/ffi/container/list.h:440
↓ 13 callersFunctionMoveFromAnyAfterCheck
include/tvm/ffi/type_traits.h:136
↓ 13 callersMethodNumSlots
! * \brief Return the number of usable slots for Dense layout (MSB clear => identity). * \return The number of usable slots */
include/tvm/ffi/container/map_base.h:380
↓ 13 callersFunctionRecursiveGe
(_0: Any, _1: Any, /)
python/tvm_ffi/_ffi_api.py:102
↓ 13 callersFunctionTVMFFIErrorSetRaisedFromCStr
src/ffi/error.cc:79
↓ 13 callersFunction_unique_key_ff
Return a globally unique type key for low-level field tests.
tests/python/test_dataclass_py_class.py:62
↓ 13 callersMethodall_entries
Iterate over all variants, in ordinal (``_value``) order.
python/tvm_ffi/dataclasses/enum.py:481
↓ 13 callersMethodclear
Remove all elements from the list.
python/tvm_ffi/container.py:366
↓ 13 callersMethodget_function_metadata
Get metadata for a function exported from the module. This retrieves metadata for functions exported via c:macro:`TVM_FFI_DLL_EXPORT_TYPED_FU
python/tvm_ffi/module.py:194
↓ 13 callersFunctionis_dataclass
Return True if ``obj`` is a ``@c_class`` / ``@py_class`` type or instance. Returns False for FFI container types (:class:`~tvm_ffi.Array`, :c
python/tvm_ffi/dataclasses/common.py:47
↓ 13 callersMethodpop_back
! \brief Remove the last item of the list */
include/tvm/ffi/container/list.h:372
↓ 13 callersMethodto_string
(&self)
rust/tvm-ffi/src/dtype.rs:53
↓ 12 callersFunctionDeepCopy
(_0: Any, /)
python/tvm_ffi/_ffi_api.py:45
↓ 12 callersFunctionForEachFieldInfo
include/tvm/ffi/reflection/accessor.h:263
↓ 12 callersFunctionGetFieldInfo
! * \brief helper function to get reflection field info by type key and field name */
include/tvm/ffi/reflection/accessor.h:40
↓ 12 callersMethodGetTypeKey
! * \return the type key of the object. * \note this operation is expensive, can be used for error reporting. */
include/tvm/ffi/object.h:234
↓ 12 callersMethodSkipNextAssumeNoSpace
! * \brief Skip the next char that we know is not a space * * \note Caller must explicitly call SkipSpaces first or use * Peek alrea
src/ffi/extra/json_parser.cc:65
↓ 12 callersFunctionTVMFFIFunctionCall
src/ffi/function.cc:191
↓ 12 callersFunctionTVMFFIObjectDecRef
src/ffi/object.cc:520
↓ 12 callersFunction_parse_maps
Parse /proc/self/maps into sorted list of (start, end) tuples.
addons/tvm_ffi_orcjit/tests/test_memory_manager.py:217
↓ 12 callersFunctionfrom_json_graph_str
Load an object from a JSON graph string. The JSON graph string is produced by :py:func:`to_json_graph_str` and can be converted back into the
python/tvm_ffi/serialization.py:66
↓ 12 callersMethodfront
! \return The first element of the list */
include/tvm/ffi/container/list.h:301
↓ 12 callersMethodis_err
! \brief Returns true if the Expected contains an error. */
include/tvm/ffi/expected.h:122
↓ 12 callersMethodlen
(&self)
rust/tvm-ffi/src/collections/array.rs:127
↓ 12 callersFunctionmake_kwargs_wrapper_from_signature
Create a wrapper with kwargs support for a function that only accepts positional arguments. This is a convenience function that extracts paramete
python/tvm_ffi/utils/kwargs_wrapper.py:315
↓ 12 callersMethodreset
! * \brief Reset any to None */
include/tvm/ffi/any.h:241
↓ 12 callersMethodsize
! * \brief Get the size of the idx-th dimension. If the idx is negative, * it gets the size of last idx-th dimension. * \param idx The index
include/tvm/ffi/container/tensor.h:332
↓ 12 callersMethodunique
! * \return Whether the object.use_count() == 1. */
include/tvm/ffi/object.h:262
↓ 11 callersFunctionDLDataTypeToString
! * \brief Convert a DLDataType to a string. * \param dtype The DLDataType to convert. * \return The string. */
include/tvm/ffi/dtype.h:135
↓ 11 callersFunctionGetMethod
! * \brief helper function to get reflection method function by method info * * \param type_key The type key. * \param method_name The name of the
include/tvm/ffi/reflection/accessor.h:225
↓ 11 callersMethodSetErrorExpectingValue
src/ffi/extra/json_parser.cc:271
↓ 11 callersMethodStructuralKey
! * \brief Construct a StructuralKey from a key. * \param key The key value. */
include/tvm/ffi/extra/structural_key.h:73
↓ 11 callersFunctionTVMFFITypeRegisterAttr
src/ffi/object.cc:572
↓ 11 callersMethod__init__
(self, val: int)
tests/python/test_dataclass_py_class.py:429
↓ 11 callersFunction_check
Assert result matches pattern with re.fullmatch, with a clear error message.
tests/python/test_dataclass_repr.py:34
↓ 11 callersFunction_match_args
Read ``__match_args__`` without tripping static attribute checks.
tests/python/test_dataclass_common.py:534
↓ 11 callersMethoddefined
! * \return whether the object is defined. */
include/tvm/ffi/object.h:805
↓ 11 callersFunctionnop
(*args: Any)
python/tvm_ffi/testing/_ffi_api.py:53
↓ 10 callersFunctionAsByteArray
! * \brief C++17 constexpr helper: convert a ``const char*`` to ``TVMFFIByteArray``. * \param s A null-terminated string literal. * \return A ``TVM
include/tvm/ffi/reflection/accessor.h:536
↓ 10 callersMethodPeek
! * \brief Peek the current character. * \return The current character, or -1 if the end of the string is reached. */
src/ffi/extra/json_parser.cc:55
↓ 10 callersFunctionStableHashBytes
! * \brief Hash the binary bytes * \param data The data pointer * \param size The size of the bytes. * \return the hash value. */
include/tvm/ffi/base_details.h:264
↓ 10 callersFunctionStringToDLDataType
! * \brief Convert a string to a DLDataType. * \param str The string to convert. * \return The DLDataType. */
include/tvm/ffi/dtype.h:123
↓ 10 callersFunctionTVMFFIEnvGetStream
src/ffi/extra/env_context.cc:104
↓ 10 callersFunctionTypeIndexToTypeKey
! * \brief Get type key from type index * \param type_index The input type index * \return the type key */
include/tvm/ffi/object.h:130
↓ 10 callersFunction_default_ty_map
()
tests/python/test_stubgen.py:50
↓ 10 callersMethoddef_attr
Declare an *extensible attribute* column on this enum. Extensible attributes let any consumer associate per-variant data outside the
python/tvm_ffi/dataclasses/enum.py:498
↓ 10 callersMethodstride
! * \brief Get the stride of the idx-th dimension. If the idx is negative, * it gets the stride of last idx-th dimension. * \param idx The in
include/tvm/ffi/container/tensor.h:348
↓ 9 callersMethodExtend
include/tvm/ffi/reflection/access_path.h:382
↓ 9 callersMethodPathEqual
include/tvm/ffi/reflection/access_path.h:424
↓ 9 callersMethodSkipSpaces
! * \brief Skip the space characters. * \note This function does not check if the end of the string is reached. */
src/ffi/extra/json_parser.cc:84
↓ 9 callersMethodToSteps
include/tvm/ffi/reflection/access_path.h:411
↓ 9 callersFunction_assert_roundtrip_eq
Assert that roundtrip preserves the value.
tests/python/test_serialization.py:38
↓ 9 callersFunction_get_type_info
(cls: type)
tests/python/test_dataclass_py_class.py:50
↓ 9 callersMethodas_bytes
Get the string as a byte slice
rust/tvm-ffi/src/string.rs:269
↓ 9 callersMethodas_str
Get the string as a str slice
rust/tvm-ffi/src/string.rs:284
↓ 9 callersMethodcall_packed
Call the function in packed format.
rust/tvm-ffi/src/function.rs:108
↓ 9 callersMethodfrom_file
Parse a file to extract code blocks based on stub markers.
python/tvm_ffi/stub/file_utils.py:156
↓ 9 callersFunctioninc_ref
(handle: *mut TVMFFIObject)
rust/tvm-ffi/src/object.rs:136
↓ 9 callersMethodlock
! \return The internal object pointer if the object is still alive, otherwise nullptr */
include/tvm/ffi/object.h:704
↓ 9 callersMethodnumel
! * \brief Get the number of elements in the Tensor. * \return The number of elements in the Tensor. */
include/tvm/ffi/container/tensor.h:362
↓ 9 callersMethodupdate
Update the file's lines based on the current code blocks and optionally show a diff.
python/tvm_ffi/stub/file_utils.py:130
↓ 9 callersMethodvalues
Return a dynamic view of the map's values.
python/tvm_ffi/container.py:597
↓ 8 callersMethodLaunch
! * \brief Launch the kernel with specified parameters. * * This function launches the kernel on the current CUDA context/device using * t
include/tvm/ffi/extra/cuda/cubin_launcher.h:480
↓ 8 callersMethodPushFrame
src/ffi/extra/dataclass.cc:237
↓ 8 callersMethodRunLoop
src/ffi/extra/dataclass.cc:145
↓ 8 callersFunctionTVMFFIEnvSetDLPackManagedTensorAllocator
src/ffi/extra/env_context.cc:110
↓ 8 callersFunctionTVMFFIGetTypeAttrColumn
src/ffi/object.cc:579
↓ 8 callersFunction_rel_top_directory
Get the current directory of this file.
python/tvm_ffi/libinfo.py:364
↓ 8 callersFunction_stdout_for
Invoke tvm-ffi-config with the provided arguments and return stdout with trailing whitespace removed.
tests/python/test_libinfo.py:28
↓ 8 callersFunction_validate_dataclass_to_tuple_schema
Validate that a DataclassToTupleSchema contains only safe identifiers. This is critical for security since field names are embedded directly
python/tvm_ffi/utils/unpack_dataclass.py:144
← previousnext →101–200 of 5,333, ranked by callers