MCPcopy Index your code
hub / github.com/apache/tvm / function

Function function

python/tvm/relax/script/builder/ir.py:261–278  ·  view source on GitHub ↗

Start a function frame. Parameters ---------- is_pure: bool Whether the function is annotated as pure. is_private : bool Whether the function is annotated as private. Returns ------- frame: FunctionFrame The constructed function frame.

(is_pure: bool = True, is_private: bool = False)

Source from the content-addressed store, hash-verified

259
260
261def function(is_pure: bool = True, is_private: bool = False) -> frame.FunctionFrame:
262 """Start a function frame.
263 Parameters
264 ----------
265 is_pure: bool
266 Whether the function is annotated as pure.
267
268 is_private : bool
269 Whether the function is annotated as private.
270
271 Returns
272 -------
273 frame: FunctionFrame
274 The constructed function frame.
275 """
276 return _ffi_api.Function( # type: ignore[attr-defined] # pylint: disable=no-member
277 is_pure, is_private
278 )
279
280
281def arg(name: py_str, struct_info: StructInfo) -> Var:

Callers 2

check_numerical_gradsFunction · 0.50
derivativeFunction · 0.50

Calls 1

FunctionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…