@@ -124,7 +124,8 @@ struct Conv2DAttrs : public tvm::AttrsNode<Conv2DAttrs> {
124124 tvm::String data_layout;
125125 tvm::String kernel_layout;
126126 tvm::String out_layout;
127- tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
127+ tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
128+ Array<PrimExpr> meta_schedule_original_shape; // The original shape of the weights
128129 DataType out_dtype;
129130
130131 TVM_DECLARE_ATTRS (Conv2DAttrs, " relay.attrs.Conv2DAttrs" ) {
@@ -217,7 +218,8 @@ struct Conv2DWinogradAttrs : public tvm::AttrsNode<Conv2DWinogradAttrs> {
217218 tvm::String data_layout;
218219 tvm::String kernel_layout;
219220 tvm::String out_layout;
220- tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
221+ tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
222+ Array<PrimExpr> meta_schedule_original_shape; // The original shape of the weights
221223 DataType out_dtype;
222224
223225 TVM_DECLARE_ATTRS (Conv2DWinogradAttrs, " relay.attrs.Conv2DWinogradAttrs" ) {
@@ -308,7 +310,8 @@ struct Conv3DAttrs : public tvm::AttrsNode<Conv3DAttrs> {
308310 tvm::String data_layout;
309311 tvm::String kernel_layout;
310312 tvm::String out_layout;
311- tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
313+ tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
314+ Array<PrimExpr> meta_schedule_original_shape; // The original shape of the weights
312315 DataType out_dtype;
313316
314317 TVM_DECLARE_ATTRS (Conv3DAttrs, " relay.attrs.Conv3DAttrs" ) {
@@ -1049,7 +1052,8 @@ struct MatmulAttrs : public tvm::AttrsNode<MatmulAttrs> {
10491052 DataType out_dtype;
10501053 bool transpose_a;
10511054 bool transpose_b;
1052- tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
1055+ tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
1056+ Array<PrimExpr> meta_schedule_original_shape; // The original shape of the weights
10531057
10541058 TVM_DECLARE_ATTRS (MatmulAttrs, " relay.attrs.MatmulAttrs" ) {
10551059 TVM_ATTR_FIELD (units).describe (" Number of hidden units of the dense transformation." );
@@ -1072,7 +1076,8 @@ struct MatmulAttrs : public tvm::AttrsNode<MatmulAttrs> {
10721076/* ! \brief Attributes for dense operator */
10731077struct DenseAttrs : public tvm ::AttrsNode<DenseAttrs> {
10741078 IndexExpr units;
1075- tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
1079+ tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
1080+ Array<PrimExpr> meta_schedule_original_shape; // The original shape of the weights
10761081 DataType out_dtype;
10771082
10781083 TVM_DECLARE_ATTRS (DenseAttrs, " relay.attrs.DenseAttrs" ) {
@@ -1109,7 +1114,8 @@ struct BatchMatmulAttrs : public tvm::AttrsNode<BatchMatmulAttrs> {
11091114 DataType out_dtype;
11101115 bool transpose_a;
11111116 bool transpose_b;
1112- tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
1117+ tvm::String auto_scheduler_rewritten_layout; // The layout after auto-scheduler's layout rewrite
1118+ Array<PrimExpr> meta_schedule_original_shape; // The original shape of the weights
11131119
11141120 TVM_DECLARE_ATTRS (BatchMatmulAttrs, " relay.attrs.BatchMatmulAttrs" ) {
11151121 // use 0 bits to indicate none.
0 commit comments