24 #ifndef TVM_TOPI_DETAIL_PAD_UTILS_H_
25 #define TVM_TOPI_DETAIL_PAD_UTILS_H_
48 inline Array<PrimExpr> GetPadTuple(PrimExpr pad_h, PrimExpr pad_w) {
52 auto pad_top =
indexdiv(pad_h + 1, 2);
53 auto pad_left =
indexdiv(pad_w + 1, 2);
55 return {pad_top, pad_left, pad_h - pad_top, pad_w - pad_left};
Tensor expression language DSL.
Definition: extracted_task.h:33
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
PrimExpr indexdiv(PrimExpr a, PrimExpr b, Span span=Span())
compute floor(a / b) where a and b are non-negative.
Operation node can generate one or multiple Tensors.
Common operators defined for Expr.