MCPcopy Create free account
hub / github.com/apache/tvm-ffi / __init__

Method __init__

tests/python/test_function.py:287–290  ·  view source on GitHub ↗
(self, metadata: Any)

Source from the content-addressed store, hash-verified

285
286 class MyFunction(tvm_ffi.Function, JitFunction):
287 def __init__(self, metadata: Any) -> None:
288 # Explicitly initialize the mixin. `super()` is not used because `tvm_ffi.Function`
289 # is an extension type without a standard `__init__`.
290 JitFunction.__init__(self, metadata)
291
292 # When subclassing a Cython cdef class and overriding `__init__`,
293 # special methods like `__call__` may not be inherited automatically.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected