Function tvm::indexmod(PrimExpr, PrimExpr, Location)#
Defined in File op.h
Function Documentation#
-
PrimExpr tvm::indexmod(PrimExpr a, PrimExpr b, Location loc = UnknownLoc())#
compute the remainder floor(a / b) where a and b are non-negative.
Use this function for index 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 index 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.