Function tvm::shapediv#
Defined in File op.h
Function Documentation#
-
PrimExpr tvm::shapediv(PrimExpr a, PrimExpr b, Location loc = UnknownLoc())#
compute ceil(a / b) where a and b are non-negative.
Use this function for shape split calculation.
This function might take advantage of the fact that a and b are non-negative.
Note
this function does eager constant folding for shape types(int32, int64) when possible.
- Parameters:
a – left operand
b – right operand
loc – The location of this operation in the source.
- Returns:
The result expression.