24#ifndef TVM_TOPI_DETAIL_PAD_UTILS_H_
25#define TVM_TOPI_DETAIL_PAD_UTILS_H_
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};
Typed reference/view over any Expr whose ExprNode::ty is PrimType.
Definition base_expr.h:447
Shared primitive construction and constant helpers.
Tensor expression language DSL.
Definition extracted_task.h:33
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
TVM_TIRX_DLL PrimExpr indexdiv(PrimExpr a, PrimExpr b, Location loc=UnknownLoc())
compute floor(a / b) where a and b are non-negative.
Operation node can generate one or multiple Tensors.