MCPcopy Create free account
hub / github.com/apache/tvm / min

Function min

python/tvm/tirx/script/builder/ir.py:2714–2730  ·  view source on GitHub ↗

Compute the minimum value of two expressions. Parameters ---------- a : PrimExpr The left hand operand b : PrimExpr The right hand operand Returns ------- res : PrimExpr The result expression.

(a: PrimExpr, b: PrimExpr)

Source from the content-addressed store, hash-verified

2712
2713
2714def min(a: PrimExpr, b: PrimExpr) -> PrimExpr: # pylint: disable=redefined-builtin
2715 """Compute the minimum value of two expressions.
2716
2717 Parameters
2718 ----------
2719 a : PrimExpr
2720 The left hand operand
2721
2722 b : PrimExpr
2723 The right hand operand
2724
2725 Returns
2726 -------
2727 res : PrimExpr
2728 The result expression.
2729 """
2730 return _ffi_api.min(a, b) # type: ignore[attr-defined] # pylint: disable=no-member
2731
2732
2733def max(a: PrimExpr, b: PrimExpr) -> PrimExpr: # pylint: disable=redefined-builtin

Callers 3

_record_meta_resourceFunction · 0.70
intersectMethod · 0.50
_flat_product_rangeFunction · 0.50

Calls 1

minMethod · 0.80

Tested by

no test coverage detected