@@ -26,6 +26,35 @@ use tvm_macros::Object;
2626
2727type IndexExpr = PrimExpr ;
2828
29+ #[ repr( C ) ]
30+ #[ derive( Object , Debug ) ]
31+ #[ ref_name = "PadAttrs" ]
32+ #[ type_key = "relay.attrs.PadAttrs" ]
33+ pub struct PadAttrsNode {
34+ pub base : BaseAttrsNode ,
35+ pub pad_width : Array < Array < IndexExpr > > ,
36+ pub pad_mode : TString ,
37+ }
38+
39+ #[ repr( C ) ]
40+ #[ derive( Object , Debug ) ]
41+ #[ ref_name = "Conv1DAttrs" ]
42+ #[ type_key = "relay.attrs.Conv1DAttrs" ]
43+ pub struct Conv1DAttrsNode {
44+ pub base : BaseAttrsNode ,
45+ pub strides : Array < IndexExpr > ,
46+ pub padding : Array < IndexExpr > ,
47+ pub dilation : Array < IndexExpr > ,
48+ // TODO(@gussmith23) groups is "int", what should it be here?
49+ pub groups : i32 ,
50+ pub channels : IndexExpr ,
51+ pub kernel_size : Array < IndexExpr > ,
52+ pub data_layout : TString ,
53+ pub kernel_layout : TString ,
54+ pub out_layout : TString ,
55+ pub out_dtype : DataType ,
56+ }
57+
2958#[ repr( C ) ]
3059#[ derive( Object , Debug ) ]
3160#[ ref_name = "Conv2DAttrs" ]
@@ -42,6 +71,7 @@ pub struct Conv2DAttrsNode {
4271 pub data_layout : TString ,
4372 pub kernel_layout : TString ,
4473 pub out_layout : TString ,
74+ pub auto_scheduler_rewritten_layout : TString ,
4575 pub out_dtype : DataType ,
4676}
4777
@@ -138,6 +168,7 @@ pub struct AvgPool2DAttrsNode {
138168 pub pool_size : Array < IndexExpr > ,
139169 pub strides : Array < IndexExpr > ,
140170 pub padding : Array < IndexExpr > ,
171+ pub dilation : Array < IndexExpr > ,
141172 pub layout : TString ,
142173 pub ceil_mode : bool ,
143174 pub count_include_pad : bool ,
@@ -155,3 +186,34 @@ pub struct UpSamplingAttrsNode {
155186 pub method : TString ,
156187 pub align_corners : bool ,
157188}
189+
190+ #[ repr( C ) ]
191+ #[ derive( Object , Debug ) ]
192+ #[ ref_name = "DropoutAttrs" ]
193+ #[ type_key = "relay.attrs.DropoutAttrs" ]
194+ pub struct DropoutAttrsNode {
195+ pub base : BaseAttrsNode ,
196+ pub rate : f64 ,
197+ }
198+
199+ #[ repr( C ) ]
200+ #[ derive( Object , Debug ) ]
201+ #[ ref_name = "BatchMatmulAttrs" ]
202+ #[ type_key = "relay.attrs.BatchMatmulAttrs" ]
203+ pub struct BatchMatmulAttrsNode {
204+ pub base : BaseAttrsNode ,
205+ pub auto_scheduler_rewritten_layout : TString ,
206+ pub out_dtype : DataType ,
207+ }
208+
209+ #[ repr( C ) ]
210+ #[ derive( Object , Debug ) ]
211+ #[ ref_name = "LayerNormAttrs" ]
212+ #[ type_key = "relay.attrs.LayerNormAttrs" ]
213+ pub struct LayerNormAttrsNode {
214+ pub base : BaseAttrsNode ,
215+ pub axis : i32 ,
216+ pub epsilon : f64 ,
217+ pub center : bool ,
218+ pub scale : bool ,
219+ }
0 commit comments