src/relay/qnn/csi_op/pad.cc
// Handler to create a call to the padding op used by front-end FFI
Handler to create a call to the padding op used by front-end FFI
Handler to create a call to the padding op used by front - end FFI
Expr MakeQnnCSIPad(Expr data, Expr pad_value, Array<Array<IndexExpr>> pad_width,
                   std::string pad_mode, DataType out_dtype, Array<Array<IndexExpr>> q_params,
                   String layer_name) {
  auto attrs = make_object<QnnCSIPadAttrs>();
  attrs->pad_width = std::move(pad_width);
  attrs->pad_mode = std::move(pad_mode);
  attrs->out_dtype = out_dtype;
  attrs->q_params = std::move(q_params);
  attrs->layer_name = std::move(layer_name);
  static const Op& op = Op::Get("qnn.csi.pad");
  return Call(op, {data, pad_value}, Attrs(attrs), {});
}
Expr MakeQnnCSIPad ( Expr data , Expr pad_value , Array < Array < IndexExpr > > pad_width , std :: string pad_mode , DataType out_dtype , Array < Array < IndexExpr > > q_params , String layer_name ) { auto attrs = make_object < QnnCSIPadAttrs > ( ) ; attrs -> pad_width = std :: move ( pad_width ) ; attrs -> pad_mode = std :: move ( pad_mode ) ; attrs -> out_dtype = out_dtype ; attrs -> q_params = std :: move ( q_params ) ; attrs -> layer_name = std :: move ( layer_name ) ; static const Op & op = Op :: Get ( " " ) ; return Call ( op , { data , pad_value } , Attrs ( attrs ) , { } ) ; }
Handler to create a call to the padding op used by front-end FFI
Handler to create a call to the padding op used by front - end FFI