24 #ifndef TVM_RELAX_ATTRS_NN_H_
25 #define TVM_RELAX_ATTRS_NN_H_
45 refl::ObjectDef<Conv1DAttrs>()
48 "If padding is non-zero, then the input is implicitly zero-padded"
49 "Padding support both symmetric and asymmetric as"
50 "one int : same padding used on both sides"
51 "two int : padding width in the order of (left, right)")
53 "Specifies the dilation rate to use for dilated convolution.")
55 "Number of groups to split the input into for grouped convolution. The number of "
57 "output channels should be divisible by the number of groups.")
59 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc."
60 "'N', 'C', 'W' stands for batch, channel, width"
61 "dimensions respectively. Convolution is applied on the 'W' dimensions.")
63 "Dimension ordering of weight. Can be 'OIW', 'IOW', etc."
64 "'O', 'I', 'W' stands for num_filter, input_channel, and width"
65 "dimensions respectively.")
67 "Dimension ordering of output. Can be 'NCW', 'NWC', etc."
68 "'N', 'C', 'W' stands for batch, channel, and width"
69 "dimensions respectively. Default to be same as input layout.")
71 "Output data type, set to explicit type under mixed precision setting");
74 static constexpr
const char*
_type_key =
"relax.attrs.Conv1DAttrs";
91 refl::ObjectDef<Conv2DAttrs>()
94 "If padding is non-zero, then the input is implicitly zero-padded"
95 "Padding support both symmetric and asymmetric as"
96 "one int : same padding used on all sides"
97 "two int : bottom, right will use same padding as top, left"
98 "four int : padding width in the order of (top, left, bottom, right)")
100 "Specifies the dilation rate to use for dilated convolution.")
102 "Number of groups to split the input into for grouped convolution. The number of "
104 "output channels should be divisible by the number of groups.")
106 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
107 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
108 "dimensions respectively. Convolution is applied on the 'H' and"
111 "Dimension ordering of weight. Can be 'OIHW', 'OIHW16o16i', etc."
112 "'O', 'I', 'H', 'W' stands for num_filter, input_channel, height, and width"
113 "dimensions respectively.")
115 "Dimension ordering of output. Can be 'NCHW', 'NHWC', etc."
116 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
117 "dimensions respectively. Default to be same as input layout.")
119 "Output data type, set to explicit type under mixed precision setting");
122 static constexpr
const char*
_type_key =
"relax.attrs.Conv2DAttrs";
139 refl::ObjectDef<Conv3DAttrs>()
143 "If padding is non-zero, then the input is implicitly zero-padded"
144 "Padding support both symmetric and asymmetric as"
145 "one int : same padding used on all sides"
146 "two int : bottom, right will use same padding as top, left"
147 "four int : padding width in the order of (forward, back, top, left, bottom, right)")
149 "Specifies the dilation rate to use for dilated convolution.")
151 "Number of groups to split the input into for grouped convolution. The number of "
153 "output channels should be divisible by the number of groups.")
155 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc."
156 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
157 "dimensions respectively. Convolution is applied on the 'D', 'H', and"
161 "Dimension ordering of weight. Can be 'OIDHW', 'OIDHW16o16i', etc."
162 "'O', 'I', 'D', 'H', 'W' stands for num_filter, input_channel, depth, height, and width"
163 "dimensions respectively.")
165 "Dimension ordering of output. Can be 'NCDHW', 'NDHWC', etc."
166 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
167 "dimensions respectively. Default to be same as input layout.")
169 "Output data type, set to explicit type under mixed precision setting");
172 static constexpr
const char*
_type_key =
"relax.attrs.Conv3DAttrs";
190 refl::ObjectDef<Conv1DTransposeAttrs>()
192 "Specifies the strides of the convolution.")
194 "If padding is non-zero, then the input is implicitly zero-padded"
195 "Padding support both symmetric and asymmetric as"
196 "one int : same padding used on both sides"
197 "two int : padding width in the order of (left, right)")
199 "Used to disambiguate the output shape.")
201 "Specifies the dilation rate to use for dilated convolution.")
203 "Number of groups to split the input into for grouped convolution. The number of "
205 "output channels should be divisible by the number of groups.")
207 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc."
208 "'N', 'C', 'W' stands for batch, channel, width"
209 "dimensions respectively. Convolution is applied on the 'W' dimensions.")
211 "Dimension ordering of weight. Can be 'OIW', 'IOW', etc."
212 "'O', 'I', 'W' stands for num_filter, input_channel, and width"
213 "dimensions respectively.")
215 "Dimension ordering of output. Can be 'NCW', 'NWC', etc."
216 "'N', 'C', 'W' stands for batch, channel, and width"
217 "dimensions respectively. Default to be same as input layout.")
219 "Output data type, set to explicit type under mixed precision setting");
222 static constexpr
const char*
_type_key =
"relax.attrs.Conv1DTransposeAttrs";
240 refl::ObjectDef<Conv2DTransposeAttrs>()
242 "Specifies the strides of the convolution.")
244 "If padding is non-zero, then the input is implicitly zero-padded"
245 "Padding support both symmetric and asymmetric as"
246 "one int : same padding used on all sides"
247 "two int : bottom, right will use same padding as top, left"
248 "four int : padding width in the order of (top, left, bottom, right)")
250 "Used to disambiguate the output shape.")
252 "Specifies the dilation rate to use for dilated convolution.")
254 "Number of groups to split the input into for grouped convolution. The number of "
256 "output channels should be divisible by the number of groups.")
258 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
259 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
260 "dimensions respectively. Convolution is applied on the 'H' and"
263 "Dimension ordering of weight. Can be 'OIHW', 'OIHW16o16i', etc."
264 "'O', 'I', 'H', 'W' stands for num_filter, input_channel, height, and width"
265 "dimensions respectively.")
267 "Dimension ordering of output. Can be 'NCHW', 'NHWC', etc."
268 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
269 "dimensions respectively. Default to be same as input layout.")
271 "Output data type, set to explicit type under mixed precision setting");
274 static constexpr
const char*
_type_key =
"relax.attrs.Conv2DTransposeAttrs";
291 refl::ObjectDef<Pool1DAttrs>()
296 "If padding is non-zero, then the input is implicitly zero-padded"
297 "Padding support both symmetric and asymmetric as"
298 "one int : same padding used on all sides"
299 "two int : padding width in the order of (left, right)")
302 "A boolean indicating if use ceil or floor to compute the output shape. By using ceil, "
303 "every element in the input tensor will be covered by a sliding window.")
305 "When true, will include padding to compute the average")
307 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc."
308 "'N', 'C', 'W' stands for batch, channel, and width"
309 "dimensions respectively. Pooling is applied on the 'W' dimensions.",
310 refl::DefaultValue(
"NCW"))
312 "Dimension ordering of output data. Can be 'NCW', 'NWC', etc."
313 "'N', 'C', 'W' stands for batch, channel, and width"
314 "dimensions respectively. Pooling is applied on the 'W' dimensions.");
317 static constexpr
const char*
_type_key =
"relax.attrs.Pool1DAttrs";
334 refl::ObjectDef<Pool2DAttrs>()
339 "If padding is non-zero, then the input is implicitly zero-padded"
340 "Padding support both symmetric and asymmetric as"
341 "one int : same padding used on all sides"
342 "two int : bottom, right will use same padding as top, left"
343 "four int : padding width in the order of (top, left, bottom, right)")
346 "A boolean indicating if use ceil or floor to compute the output shape. By using ceil, "
347 "every element in the input tensor will be covered by a sliding window.")
349 "When true, will include padding to compute the average")
351 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
352 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
353 "dimensions respectively. Pooling is applied on the 'H' and"
356 "Dimension ordering of output data. Can be 'NCHW', 'NHWC', etc."
357 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
358 "dimensions respectively. Pooling is applied on the 'H' and"
362 static constexpr
const char*
_type_key =
"relax.attrs.Pool2DAttrs";
379 refl::ObjectDef<Pool3DAttrs>()
384 "If padding is non-zero, then the input is implicitly zero-padded"
385 "Padding support both symmetric and asymmetric as"
386 "one int : same padding used on all sides"
387 "three int : back, bottom, right will use same padding as front, top, left"
388 "four int : padding width in the order of (front, top, left, back, bottom, right)")
391 "A boolean indicating if use ceil or floor to compute the output shape. By using ceil, "
392 "every element in the input tensor will be covered by a sliding window.")
394 "When true, will include padding to compute the average")
396 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc."
397 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
398 "dimensions respectively. Pooling is applied on the 'D', 'H' and"
401 "Dimension ordering of output data. Can be 'NCDHW', 'NDHWC', etc."
402 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
403 "dimensions respectively. Pooling is applied on the 'D', 'H' and"
407 static constexpr
const char*
_type_key =
"relax.attrs.Pool3DAttrs";
419 refl::ObjectDef<AdaptivePool1DAttrs>()
422 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc."
423 "'N', 'C', 'W' stands for batch, channel and width"
424 "dimensions respectively. Pooling is applied on the"
427 "Dimension ordering of output data. Can be 'NCW', 'NWC', etc."
428 "'N', 'C', 'W' stands for batch, channel and width"
429 "dimensions respectively. Pooling is applied on the"
433 static constexpr
const char*
_type_key =
"relax.attrs.AdaptivePool1DAttrs";
445 refl::ObjectDef<AdaptivePool2DAttrs>()
448 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
449 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
450 "dimensions respectively. Pooling is applied on the 'H' and"
453 "Dimension ordering of output data. Can be 'NCHW', 'NHWC', etc."
454 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
455 "dimensions respectively. Pooling is applied on the 'H' and"
459 static constexpr
const char*
_type_key =
"relax.attrs.AdaptivePool2DAttrs";
471 refl::ObjectDef<AdaptivePool3DAttrs>()
474 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc."
475 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
476 "dimensions respectively. Pooling is applied on 'D', 'H' and"
479 "Dimension ordering of output data. Can be 'NCDHW', 'NDHWC', etc."
480 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
481 "dimensions respectively. Pooling is applied on 'D', 'H' and"
485 static constexpr
const char*
_type_key =
"relax.attrs.AdaptivePool3DAttrs";
496 "The axis to sum over when computing softmax.");
499 static constexpr
const char*
_type_key =
"relax.attrs.SoftmaxAttrs";
510 "The slope of the negative part.");
513 static constexpr
const char*
_type_key =
"relax.attrs.LeakyReluAttrs";
524 refl::ObjectDef<SoftplusAttrs>()
526 "Scaling factor controlling the sharpness of the Softplus transition.")
528 "Value determining when to use linear approximation for numerical stability.");
531 static constexpr
const char*
_type_key =
"relax.attrs.SoftplusAttrs";
542 "The axis along which the alpha values are applied.");
545 static constexpr
const char*
_type_key =
"relax.attrs.PReluAttrs";
560 refl::ObjectDef<BatchNormAttrs>()
563 "Small float added to variance to avoid dividing by zero")
565 "Indicating if the beta offset will be added to the normalized tensor.")
567 "Indicating if the gamma scale will be multiplied.")
569 "The value used for the moving_mean and moving_var update.")
571 "Whether we are training (i.e., not in eval mode).");
574 static constexpr
const char*
_type_key =
"relax.attrs.BatchNormAttrs";
587 refl::ObjectDef<LayerNormAttrs>()
589 "The axes that along which the normalization is applied.")
591 "Small float added to variance to avoid dividing by zero")
593 "Indicating if the beta offset will be added to the normalized tensor.")
595 "Indicating if the gamma scale will be multiplied.");
598 static constexpr
const char*
_type_key =
"relax.attrs.LayerNormAttrs";
613 refl::ObjectDef<GroupNormAttrs>()
615 "The number of groups to separate the channels into.")
617 "The axis that represents the channel.")
620 "The axes that along which the normalization is applied (excluding the channel axis).")
622 "Small float added to variance to avoid dividing by zero")
624 "Indicating if the beta offset will be added to the normalized tensor.")
626 "Indicating if the gamma scale will be multiplied.");
629 static constexpr
const char*
_type_key =
"relax.attrs.GroupNormAttrs";
643 refl::ObjectDef<InstanceNormAttrs>()
645 "The axis that represents the channel.")
647 "The axes that along which the normalization is applied.")
649 "Small float added to variance to avoid dividing by zero")
651 "Indicating if the beta offset will be added to the normalized tensor.")
653 "Indicating if the gamma scale will be multiplied.");
656 static constexpr
const char*
_type_key =
"relax.attrs.InstanceNormAttrs";
667 refl::ObjectDef<RMSNormAttrs>()
669 "The axes that along which the normalization is applied.")
671 "Small float added to variance to avoid dividing by zero");
674 static constexpr
const char*
_type_key =
"relax.attrs.RMSNormAttrs";
685 refl::ObjectDef<NLLLossAttrs>()
687 "The reduction method to apply to the output. Can be"
688 "'none', 'mean' or 'sum'.",
689 refl::DefaultValue(
"mean"))
693 static constexpr
const char*
_type_key =
"relax.attrs.NLLLossAttrs";
703 refl::ObjectDef<DropoutAttrs>().def_ro(
705 "Fraction of the input that gets dropped out during training time");
708 static constexpr
const char*
_type_key =
"relax.attrs.DropoutAttrs";
720 refl::ObjectDef<AttentionAttrs>()
723 "The custom scale applied before the softmax. The default value is 1 / sqrt(head_dim).")
725 "The type of the causal mask, i.e. 'TopLeft' and 'BottomRight'.")
727 "The size of the window for sliding-window attention.");
730 static constexpr
const char*
_type_key =
"relax.attrs.AttentionAttrs";
742 refl::ObjectDef<PadAttrs>()
744 "Number of values padded to the edges of each axis, "
745 "in the format of (before_1, after_1, ..., before_N, after_N)")
747 refl::DefaultValue(0.0))
749 "Padding type to use. \"constant\" pads with constant_value, "
750 "\"edge\" pads using the edge values of the input array, "
751 "\"reflect\" pads by reflecting values with respect to the edges.",
752 refl::DefaultValue(
"constant"));
755 static constexpr
const char*
_type_key =
"relax.attrs.PadAttrs";
765 refl::ObjectDef<PixelShuffleAttrs>().def_ro(
"upscale_factor",
767 "Scale factor for spatial upsampling.");
770 static constexpr
const char*
_type_key =
"relax.attrs.PixelShuffleAttrs";
Adapter for AttrsNode with the new reflection API.
Definition: attrs.h:384
Base class of all attribute class.
Definition: attrs.h:103
Runtime primitive data type.
Definition: data_type.h:47
Definition: repr_printer.h:91
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:37
Attributes for 1d adaptive pool operator.
Definition: nn.h:412
Optional< Array< IntImm > > output_size
Definition: nn.h:413
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(AdaptivePool1DAttrs, BaseAttrsNode)
static constexpr const char * _type_key
Definition: nn.h:433
String layout
Definition: nn.h:414
static void RegisterReflection()
Definition: nn.h:417
String out_layout
Definition: nn.h:415
Attributes for 2d adaptive pool operator.
Definition: nn.h:438
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(AdaptivePool2DAttrs, BaseAttrsNode)
static constexpr const char * _type_key
Definition: nn.h:459
static void RegisterReflection()
Definition: nn.h:443
Optional< Array< IntImm > > output_size
Definition: nn.h:439
String layout
Definition: nn.h:440
String out_layout
Definition: nn.h:441
Attributes for 3d adaptive pool operator.
Definition: nn.h:464
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(AdaptivePool3DAttrs, BaseAttrsNode)
String layout
Definition: nn.h:466
static void RegisterReflection()
Definition: nn.h:469
static constexpr const char * _type_key
Definition: nn.h:485
String out_layout
Definition: nn.h:467
Optional< Array< IntImm > > output_size
Definition: nn.h:465
Attributes used in Attention operator.
Definition: nn.h:713
Optional< String > causal_mask
Definition: nn.h:715
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(AttentionAttrs, BaseAttrsNode)
static constexpr const char * _type_key
Definition: nn.h:730
Optional< FloatImm > scale
Definition: nn.h:714
Optional< IntImm > window_size
Definition: nn.h:716
static void RegisterReflection()
Definition: nn.h:718
Attributes used in batch_norm operator.
Definition: nn.h:550
bool training
Definition: nn.h:556
bool scale
Definition: nn.h:554
static constexpr const char * _type_key
Definition: nn.h:574
static void RegisterReflection()
Definition: nn.h:558
double epsilon
Definition: nn.h:552
int axis
Definition: nn.h:551
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(BatchNormAttrs, BaseAttrsNode)
double momentum
Definition: nn.h:555
bool center
Definition: nn.h:553
Attributes used in Conv1d operator.
Definition: nn.h:33
Array< IntImm > dilation
Definition: nn.h:36
String out_layout
Definition: nn.h:40
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Conv1DAttrs, BaseAttrsNode)
int groups
Definition: nn.h:37
Array< IntImm > padding
Definition: nn.h:35
Array< IntImm > strides
Definition: nn.h:34
static void RegisterReflection()
Definition: nn.h:43
String data_layout
Definition: nn.h:38
DataType out_dtype
Definition: nn.h:41
static constexpr const char * _type_key
Definition: nn.h:74
String kernel_layout
Definition: nn.h:39
Attributes used in Conv1DTranspose operator.
Definition: nn.h:177
static void RegisterReflection()
Definition: nn.h:188
Array< IntImm > output_padding
Definition: nn.h:180
String data_layout
Definition: nn.h:183
Array< IntImm > dilation
Definition: nn.h:181
Array< IntImm > strides
Definition: nn.h:178
DataType out_dtype
Definition: nn.h:186
String out_layout
Definition: nn.h:185
static constexpr const char * _type_key
Definition: nn.h:222
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Conv1DTransposeAttrs, BaseAttrsNode)
Array< IntImm > padding
Definition: nn.h:179
String kernel_layout
Definition: nn.h:184
int groups
Definition: nn.h:182
Attributes used in Conv2d operator.
Definition: nn.h:79
String kernel_layout
Definition: nn.h:85
DataType out_dtype
Definition: nn.h:87
static constexpr const char * _type_key
Definition: nn.h:122
static void RegisterReflection()
Definition: nn.h:89
String data_layout
Definition: nn.h:84
int groups
Definition: nn.h:83
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Conv2DAttrs, BaseAttrsNode)
Array< IntImm > strides
Definition: nn.h:80
Array< IntImm > dilation
Definition: nn.h:82
Array< IntImm > padding
Definition: nn.h:81
String out_layout
Definition: nn.h:86
Attributes used in Conv2d operator.
Definition: nn.h:227
Array< IntImm > dilation
Definition: nn.h:231
Array< IntImm > output_padding
Definition: nn.h:230
Array< IntImm > padding
Definition: nn.h:229
Array< IntImm > strides
Definition: nn.h:228
String kernel_layout
Definition: nn.h:234
static constexpr const char * _type_key
Definition: nn.h:274
int groups
Definition: nn.h:232
String data_layout
Definition: nn.h:233
String out_layout
Definition: nn.h:235
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Conv2DTransposeAttrs, BaseAttrsNode)
static void RegisterReflection()
Definition: nn.h:238
DataType out_dtype
Definition: nn.h:236
Attributes used in Conv3d operator.
Definition: nn.h:127
String out_layout
Definition: nn.h:134
static constexpr const char * _type_key
Definition: nn.h:172
Array< IntImm > dilation
Definition: nn.h:130
String data_layout
Definition: nn.h:132
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Conv3DAttrs, BaseAttrsNode)
static void RegisterReflection()
Definition: nn.h:137
Array< IntImm > strides
Definition: nn.h:128
DataType out_dtype
Definition: nn.h:135
Array< IntImm > padding
Definition: nn.h:129
String kernel_layout
Definition: nn.h:133
int groups
Definition: nn.h:131
Attributes used in dropout operator.
Definition: nn.h:698
double rate
Definition: nn.h:699
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(DropoutAttrs, BaseAttrsNode)
static void RegisterReflection()
Definition: nn.h:701
static constexpr const char * _type_key
Definition: nn.h:708
Attributes used in group_norm operator.
Definition: nn.h:603
int num_groups
Definition: nn.h:604
int channel_axis
Definition: nn.h:605
double epsilon
Definition: nn.h:607
static constexpr const char * _type_key
Definition: nn.h:629
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(GroupNormAttrs, BaseAttrsNode)
Array< Integer > axes
Definition: nn.h:606
bool center
Definition: nn.h:608
static void RegisterReflection()
Definition: nn.h:611
bool scale
Definition: nn.h:609
Attributes used in instance_norm operator.
Definition: nn.h:634
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(InstanceNormAttrs, BaseAttrsNode)
bool center
Definition: nn.h:638
double epsilon
Definition: nn.h:637
bool scale
Definition: nn.h:639
static void RegisterReflection()
Definition: nn.h:641
Array< Integer > axes
Definition: nn.h:636
int channel_axis
Definition: nn.h:635
static constexpr const char * _type_key
Definition: nn.h:656
Attributes used in layer_norm operator.
Definition: nn.h:579
bool scale
Definition: nn.h:583
static void RegisterReflection()
Definition: nn.h:585
bool center
Definition: nn.h:582
Array< Integer > axes
Definition: nn.h:580
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(LayerNormAttrs, BaseAttrsNode)
static constexpr const char * _type_key
Definition: nn.h:598
double epsilon
Definition: nn.h:581
Attributes used in softmax operators.
Definition: nn.h:504
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(LeakyReluAttrs, BaseAttrsNode)
static constexpr const char * _type_key
Definition: nn.h:513
static void RegisterReflection()
Definition: nn.h:507
double alpha
Definition: nn.h:505
Attributes used in nll_loss operator.
Definition: nn.h:679
static void RegisterReflection()
Definition: nn.h:683
static constexpr const char * _type_key
Definition: nn.h:693
int ignore_index
Definition: nn.h:681
String reduction
Definition: nn.h:680
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(NLLLossAttrs, BaseAttrsNode)
Attributes used in PReLU operator.
Definition: nn.h:536
static constexpr const char * _type_key
Definition: nn.h:545
static void RegisterReflection()
Definition: nn.h:539
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(PReluAttrs, BaseAttrsNode)
int axis
Definition: nn.h:537
Attributes used for the padding operator.
Definition: nn.h:735
static constexpr const char * _type_key
Definition: nn.h:755
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(PadAttrs, BaseAttrsNode)
double pad_value
Definition: nn.h:737
tvm::String pad_mode
Definition: nn.h:738
Array< Integer > pad_width
Definition: nn.h:736
static void RegisterReflection()
Definition: nn.h:740
Attributes used for the pixel shuffle operator.
Definition: nn.h:760
int upscale_factor
Definition: nn.h:761
static void RegisterReflection()
Definition: nn.h:763
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(PixelShuffleAttrs, BaseAttrsNode)
static constexpr const char * _type_key
Definition: nn.h:770
Attributes used in max_pool1d and avg_pool1d operator.
Definition: nn.h:279
static void RegisterReflection()
Definition: nn.h:289
Array< IntImm > padding
Definition: nn.h:282
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Pool1DAttrs, BaseAttrsNode)
bool count_include_pad
Definition: nn.h:285
String layout
Definition: nn.h:286
static constexpr const char * _type_key
Definition: nn.h:317
Array< IntImm > strides
Definition: nn.h:281
Array< IntImm > dilation
Definition: nn.h:283
bool ceil_mode
Definition: nn.h:284
Array< IntImm > pool_size
Definition: nn.h:280
String out_layout
Definition: nn.h:287
Attributes used in max_pool2d and avg_pool2d operator.
Definition: nn.h:322
Array< IntImm > padding
Definition: nn.h:325
static void RegisterReflection()
Definition: nn.h:332
String layout
Definition: nn.h:329
bool count_include_pad
Definition: nn.h:328
static constexpr const char * _type_key
Definition: nn.h:362
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Pool2DAttrs, BaseAttrsNode)
String out_layout
Definition: nn.h:330
Array< IntImm > dilation
Definition: nn.h:326
bool ceil_mode
Definition: nn.h:327
Array< IntImm > strides
Definition: nn.h:324
Array< IntImm > pool_size
Definition: nn.h:323
Attributes used in max_pool3d and avg_pool3d operator.
Definition: nn.h:367
bool ceil_mode
Definition: nn.h:372
Array< IntImm > dilation
Definition: nn.h:371
String layout
Definition: nn.h:374
static constexpr const char * _type_key
Definition: nn.h:407
static void RegisterReflection()
Definition: nn.h:377
bool count_include_pad
Definition: nn.h:373
String out_layout
Definition: nn.h:375
Array< IntImm > pool_size
Definition: nn.h:368
Array< IntImm > strides
Definition: nn.h:369
Array< IntImm > padding
Definition: nn.h:370
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(Pool3DAttrs, BaseAttrsNode)
Attributes used in rms_norm operator.
Definition: nn.h:661
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(RMSNormAttrs, BaseAttrsNode)
double epsilon
Definition: nn.h:663
static constexpr const char * _type_key
Definition: nn.h:674
static void RegisterReflection()
Definition: nn.h:665
Array< Integer > axes
Definition: nn.h:662
Attributes used in softmax operators.
Definition: nn.h:490
static constexpr const char * _type_key
Definition: nn.h:499
int axis
Definition: nn.h:491
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(SoftmaxAttrs, BaseAttrsNode)
static void RegisterReflection()
Definition: nn.h:493
Attributes used in softplus operators.
Definition: nn.h:518
TVM_FFI_DECLARE_FINAL_OBJECT_INFO(SoftplusAttrs, BaseAttrsNode)
double threshold
Definition: nn.h:520
double beta
Definition: nn.h:519
static void RegisterReflection()
Definition: nn.h:522
static constexpr const char * _type_key
Definition: nn.h:531