24 #ifndef TVM_RELAX_ATTRS_NN_H_
25 #define TVM_RELAX_ATTRS_NN_H_
44 namespace refl = tvm::ffi::reflection;
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");
88 namespace refl = tvm::ffi::reflection;
89 refl::ObjectDef<Conv2DAttrs>()
92 "If padding is non-zero, then the input is implicitly zero-padded"
93 "Padding support both symmetric and asymmetric as"
94 "one int : same padding used on all sides"
95 "two int : bottom, right will use same padding as top, left"
96 "four int : padding width in the order of (top, left, bottom, right)")
98 "Specifies the dilation rate to use for dilated convolution.")
100 "Number of groups to split the input into for grouped convolution. The number of "
102 "output channels should be divisible by the number of groups.")
104 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
105 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
106 "dimensions respectively. Convolution is applied on the 'H' and"
109 "Dimension ordering of weight. Can be 'OIHW', 'OIHW16o16i', etc."
110 "'O', 'I', 'H', 'W' stands for num_filter, input_channel, height, and width"
111 "dimensions respectively.")
113 "Dimension ordering of output. Can be 'NCHW', 'NHWC', etc."
114 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
115 "dimensions respectively. Default to be same as input layout.")
117 "Output data type, set to explicit type under mixed precision setting");
134 namespace refl = tvm::ffi::reflection;
135 refl::ObjectDef<Conv3DAttrs>()
139 "If padding is non-zero, then the input is implicitly zero-padded"
140 "Padding support both symmetric and asymmetric as"
141 "one int : same padding used on all sides"
142 "two int : bottom, right will use same padding as top, left"
143 "four int : padding width in the order of (forward, back, top, left, bottom, right)")
145 "Specifies the dilation rate to use for dilated convolution.")
147 "Number of groups to split the input into for grouped convolution. The number of "
149 "output channels should be divisible by the number of groups.")
151 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc."
152 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
153 "dimensions respectively. Convolution is applied on the 'D', 'H', and"
157 "Dimension ordering of weight. Can be 'OIDHW', 'OIDHW16o16i', etc."
158 "'O', 'I', 'D', 'H', 'W' stands for num_filter, input_channel, depth, height, and width"
159 "dimensions respectively.")
161 "Dimension ordering of output. Can be 'NCDHW', 'NDHWC', etc."
162 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
163 "dimensions respectively. Default to be same as input layout.")
165 "Output data type, set to explicit type under mixed precision setting");
183 namespace refl = tvm::ffi::reflection;
184 refl::ObjectDef<Conv1DTransposeAttrs>()
186 "Specifies the strides of the convolution.")
188 "If padding is non-zero, then the input is implicitly zero-padded"
189 "Padding support both symmetric and asymmetric as"
190 "one int : same padding used on both sides"
191 "two int : padding width in the order of (left, right)")
193 "Used to disambiguate the output shape.")
195 "Specifies the dilation rate to use for dilated convolution.")
197 "Number of groups to split the input into for grouped convolution. The number of "
199 "output channels should be divisible by the number of groups.")
201 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc."
202 "'N', 'C', 'W' stands for batch, channel, width"
203 "dimensions respectively. Convolution is applied on the 'W' dimensions.")
205 "Dimension ordering of weight. Can be 'OIW', 'IOW', etc."
206 "'O', 'I', 'W' stands for num_filter, input_channel, and width"
207 "dimensions respectively.")
209 "Dimension ordering of output. Can be 'NCW', 'NWC', etc."
210 "'N', 'C', 'W' stands for batch, channel, and width"
211 "dimensions respectively. Default to be same as input layout.")
213 "Output data type, set to explicit type under mixed precision setting");
232 namespace refl = tvm::ffi::reflection;
233 refl::ObjectDef<Conv2DTransposeAttrs>()
235 "Specifies the strides of the convolution.")
237 "If padding is non-zero, then the input is implicitly zero-padded"
238 "Padding support both symmetric and asymmetric as"
239 "one int : same padding used on all sides"
240 "two int : bottom, right will use same padding as top, left"
241 "four int : padding width in the order of (top, left, bottom, right)")
243 "Used to disambiguate the output shape.")
245 "Specifies the dilation rate to use for dilated convolution.")
247 "Number of groups to split the input into for grouped convolution. The number of "
249 "output channels should be divisible by the number of groups.")
251 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
252 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
253 "dimensions respectively. Convolution is applied on the 'H' and"
256 "Dimension ordering of weight. Can be 'OIHW', 'OIHW16o16i', etc."
257 "'O', 'I', 'H', 'W' stands for num_filter, input_channel, height, and width"
258 "dimensions respectively.")
260 "Dimension ordering of output. Can be 'NCHW', 'NHWC', etc."
261 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
262 "dimensions respectively. Default to be same as input layout.")
264 "Output data type, set to explicit type under mixed precision setting");
283 namespace refl = tvm::ffi::reflection;
284 refl::ObjectDef<Conv3DTransposeAttrs>()
286 "Specifies the strides of the convolution.")
288 "If padding is non-zero, then the input is implicitly zero-padded"
289 "Padding support both symmetric and asymmetric as"
290 "one int : same padding used on all sides"
291 "three int : back/bottom/right will use same padding as front/top/left"
292 "six int : padding width in the order of (front, top, left, back, bottom, right)")
294 "Used to disambiguate the output shape.")
296 "Specifies the dilation rate to use for dilated convolution.")
298 "Number of groups to split the input into for grouped convolution. The number of "
300 "output channels should be divisible by the number of groups.")
302 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc."
303 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
304 "dimensions respectively. Convolution is applied on the 'D', 'H', and"
308 "Dimension ordering of weight. Can be 'IODHW', etc."
309 "'I', 'O', 'D', 'H', 'W' stands for input_channel, output_channel, depth, height, and "
311 "dimensions respectively.")
313 "Dimension ordering of output. Can be 'NCDHW', 'NDHWC', etc."
314 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
315 "dimensions respectively. Default to be same as input layout.")
317 "Output data type, set to explicit type under mixed precision setting");
335 namespace refl = tvm::ffi::reflection;
336 refl::ObjectDef<Pool1DAttrs>()
341 "If padding is non-zero, then the input is implicitly zero-padded"
342 "Padding support both symmetric and asymmetric as"
343 "one int : same padding used on all sides"
344 "two int : padding width in the order of (left, right)")
347 "A boolean indicating if use ceil or floor to compute the output shape. By using ceil, "
348 "every element in the input tensor will be covered by a sliding window.")
350 "When true, will include padding to compute the average")
352 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc."
353 "'N', 'C', 'W' stands for batch, channel, and width"
354 "dimensions respectively. Pooling is applied on the 'W' dimensions.",
355 refl::DefaultValue(
"NCW"))
357 "Dimension ordering of output data. Can be 'NCW', 'NWC', etc."
358 "'N', 'C', 'W' stands for batch, channel, and width"
359 "dimensions respectively. Pooling is applied on the 'W' dimensions.");
376 namespace refl = tvm::ffi::reflection;
377 refl::ObjectDef<Pool2DAttrs>()
382 "If padding is non-zero, then the input is implicitly zero-padded"
383 "Padding support both symmetric and asymmetric as"
384 "one int : same padding used on all sides"
385 "two int : bottom, right will use same padding as top, left"
386 "four int : padding width in the order of (top, left, bottom, right)")
389 "A boolean indicating if use ceil or floor to compute the output shape. By using ceil, "
390 "every element in the input tensor will be covered by a sliding window.")
392 "When true, will include padding to compute the average")
394 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
395 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
396 "dimensions respectively. Pooling is applied on the 'H' and"
399 "Dimension ordering of output data. Can be 'NCHW', 'NHWC', etc."
400 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
401 "dimensions respectively. Pooling is applied on the 'H' and"
419 namespace refl = tvm::ffi::reflection;
420 refl::ObjectDef<Pool3DAttrs>()
425 "If padding is non-zero, then the input is implicitly zero-padded"
426 "Padding support both symmetric and asymmetric as"
427 "one int : same padding used on all sides"
428 "three int : back, bottom, right will use same padding as front, top, left"
429 "four int : padding width in the order of (front, top, left, back, bottom, right)")
432 "A boolean indicating if use ceil or floor to compute the output shape. By using ceil, "
433 "every element in the input tensor will be covered by a sliding window.")
435 "When true, will include padding to compute the average")
437 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc."
438 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
439 "dimensions respectively. Pooling is applied on the 'D', 'H' and"
442 "Dimension ordering of output data. Can be 'NCDHW', 'NDHWC', etc."
443 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
444 "dimensions respectively. Pooling is applied on the 'D', 'H' and"
457 namespace refl = tvm::ffi::reflection;
458 refl::ObjectDef<AdaptivePool1DAttrs>()
461 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc."
462 "'N', 'C', 'W' stands for batch, channel and width"
463 "dimensions respectively. Pooling is applied on the"
466 "Dimension ordering of output data. Can be 'NCW', 'NWC', etc."
467 "'N', 'C', 'W' stands for batch, channel and width"
468 "dimensions respectively. Pooling is applied on the"
482 namespace refl = tvm::ffi::reflection;
483 refl::ObjectDef<AdaptivePool2DAttrs>()
486 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc."
487 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
488 "dimensions respectively. Pooling is applied on the 'H' and"
491 "Dimension ordering of output data. Can be 'NCHW', 'NHWC', etc."
492 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
493 "dimensions respectively. Pooling is applied on the 'H' and"
507 namespace refl = tvm::ffi::reflection;
508 refl::ObjectDef<AdaptivePool3DAttrs>()
511 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc."
512 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
513 "dimensions respectively. Pooling is applied on 'D', 'H' and"
516 "Dimension ordering of output data. Can be 'NCDHW', 'NDHWC', etc."
517 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width"
518 "dimensions respectively. Pooling is applied on 'D', 'H' and"
530 namespace refl = tvm::ffi::reflection;
532 "The axis to sum over when computing softmax.");
542 namespace refl = tvm::ffi::reflection;
544 "The slope of the negative part.");
555 namespace refl = tvm::ffi::reflection;
556 refl::ObjectDef<SoftplusAttrs>()
558 "Scaling factor controlling the sharpness of the Softplus transition.")
560 "Value determining when to use linear approximation for numerical stability.");
570 namespace refl = tvm::ffi::reflection;
572 "The axis along which the alpha values are applied.");
587 namespace refl = tvm::ffi::reflection;
588 refl::ObjectDef<BatchNormAttrs>()
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.")
597 "The value used for the moving_mean and moving_var update.")
599 "Whether we are training (i.e., not in eval mode).");
612 namespace refl = tvm::ffi::reflection;
613 refl::ObjectDef<LayerNormAttrs>()
615 "The axes that along which the normalization is applied.")
617 "Small float added to variance to avoid dividing by zero")
619 "Indicating if the beta offset will be added to the normalized tensor.")
621 "Indicating if the gamma scale will be multiplied.");
636 namespace refl = tvm::ffi::reflection;
637 refl::ObjectDef<GroupNormAttrs>()
639 "The number of groups to separate the channels into.")
641 "The axis that represents the channel.")
644 "The axes that along which the normalization is applied (excluding the channel axis).")
646 "Small float added to variance to avoid dividing by zero")
648 "Indicating if the beta offset will be added to the normalized tensor.")
650 "Indicating if the gamma scale will be multiplied.");
664 namespace refl = tvm::ffi::reflection;
665 refl::ObjectDef<InstanceNormAttrs>()
667 "The axis that represents the channel.")
669 "The axes that along which the normalization is applied.")
671 "Small float added to variance to avoid dividing by zero")
673 "Indicating if the beta offset will be added to the normalized tensor.")
675 "Indicating if the gamma scale will be multiplied.");
687 namespace refl = tvm::ffi::reflection;
688 refl::ObjectDef<RMSNormAttrs>()
690 "The axes that along which the normalization is applied.")
692 "Small float added to variance to avoid dividing by zero");
703 namespace refl = tvm::ffi::reflection;
704 refl::ObjectDef<NLLLossAttrs>()
706 "The reduction method to apply to the output. Can be"
707 "'none', 'mean' or 'sum'.",
708 refl::DefaultValue(
"mean"))
719 namespace refl = tvm::ffi::reflection;
720 refl::ObjectDef<DropoutAttrs>().def_ro(
722 "Fraction of the input that gets dropped out during training time");
734 namespace refl = tvm::ffi::reflection;
735 refl::ObjectDef<AttentionAttrs>()
738 "The custom scale applied before the softmax. The default value is 1 / sqrt(head_dim).")
740 "The type of the causal mask, i.e. 'TopLeft' and 'BottomRight'.")
742 "The size of the window for sliding-window attention.");
754 namespace refl = tvm::ffi::reflection;
755 refl::ObjectDef<PadAttrs>()
757 "Number of values padded to the edges of each axis, "
758 "in the format of (before_1, after_1, ..., before_N, after_N)")
760 refl::DefaultValue(0.0))
762 "Padding type to use. \"constant\" pads with constant_value, "
763 "\"edge\" pads using the edge values of the input array, "
764 "\"reflect\" pads by reflecting values with respect to the edges.",
765 refl::DefaultValue(
"constant"));
775 namespace refl = tvm::ffi::reflection;
776 refl::ObjectDef<PixelShuffleAttrs>().def_ro(
"upscale_factor",
778 "Scale factor for spatial upsampling.");
Adapter for AttrsNode with the new reflection API.
Definition: attrs.h:391
Base class of all attribute class.
Definition: attrs.h:102
Runtime primitive data type.
Definition: data_type.h:45
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition: analyzer.h:37
Attributes for 1d adaptive pool operator.
Definition: nn.h:451
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.AdaptivePool1DAttrs", AdaptivePool1DAttrs, BaseAttrsNode)
ffi::String out_layout
Definition: nn.h:454
ffi::Optional< ffi::Array< int64_t > > output_size
Definition: nn.h:452
ffi::String layout
Definition: nn.h:453
static void RegisterReflection()
Definition: nn.h:456
Attributes for 2d adaptive pool operator.
Definition: nn.h:476
ffi::Optional< ffi::Array< int64_t > > output_size
Definition: nn.h:477
static void RegisterReflection()
Definition: nn.h:481
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.AdaptivePool2DAttrs", AdaptivePool2DAttrs, BaseAttrsNode)
ffi::String out_layout
Definition: nn.h:479
ffi::String layout
Definition: nn.h:478
Attributes for 3d adaptive pool operator.
Definition: nn.h:501
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.AdaptivePool3DAttrs", AdaptivePool3DAttrs, BaseAttrsNode)
ffi::Optional< ffi::Array< int64_t > > output_size
Definition: nn.h:502
static void RegisterReflection()
Definition: nn.h:506
ffi::String layout
Definition: nn.h:503
ffi::String out_layout
Definition: nn.h:504
Attributes used in Attention operator.
Definition: nn.h:728
ffi::Optional< IntImm > window_size
Definition: nn.h:731
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.AttentionAttrs", AttentionAttrs, BaseAttrsNode)
ffi::Optional< FloatImm > scale
Definition: nn.h:729
ffi::Optional< ffi::String > causal_mask
Definition: nn.h:730
static void RegisterReflection()
Definition: nn.h:733
Attributes used in batch_norm operator.
Definition: nn.h:578
bool training
Definition: nn.h:584
bool scale
Definition: nn.h:582
static void RegisterReflection()
Definition: nn.h:586
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.BatchNormAttrs", BatchNormAttrs, BaseAttrsNode)
double epsilon
Definition: nn.h:580
int axis
Definition: nn.h:579
double momentum
Definition: nn.h:583
bool center
Definition: nn.h:581
Attributes used in Conv1d operator.
Definition: nn.h:33
ffi::String out_layout
Definition: nn.h:40
ffi::Array< int64_t > strides
Definition: nn.h:34
ffi::Array< int64_t > dilation
Definition: nn.h:36
int groups
Definition: nn.h:37
ffi::String data_layout
Definition: nn.h:38
static void RegisterReflection()
Definition: nn.h:43
ffi::Array< int64_t > padding
Definition: nn.h:35
DataType out_dtype
Definition: nn.h:41
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Conv1DAttrs", Conv1DAttrs, BaseAttrsNode)
ffi::String kernel_layout
Definition: nn.h:39
Attributes used in Conv1DTranspose operator.
Definition: nn.h:171
ffi::String data_layout
Definition: nn.h:177
static void RegisterReflection()
Definition: nn.h:182
ffi::Array< int64_t > dilation
Definition: nn.h:175
DataType out_dtype
Definition: nn.h:180
ffi::Array< int64_t > output_padding
Definition: nn.h:174
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Conv1DTransposeAttrs", Conv1DTransposeAttrs, BaseAttrsNode)
ffi::String out_layout
Definition: nn.h:179
ffi::Array< int64_t > strides
Definition: nn.h:172
ffi::Array< int64_t > padding
Definition: nn.h:173
int groups
Definition: nn.h:176
ffi::String kernel_layout
Definition: nn.h:178
Attributes used in Conv2d operator.
Definition: nn.h:77
ffi::String out_layout
Definition: nn.h:84
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Conv2DAttrs", Conv2DAttrs, BaseAttrsNode)
ffi::Array< int64_t > strides
Definition: nn.h:78
ffi::Array< int64_t > dilation
Definition: nn.h:80
DataType out_dtype
Definition: nn.h:85
ffi::String kernel_layout
Definition: nn.h:83
static void RegisterReflection()
Definition: nn.h:87
int groups
Definition: nn.h:81
ffi::String data_layout
Definition: nn.h:82
ffi::Array< int64_t > padding
Definition: nn.h:79
Attributes used in Conv2d operator.
Definition: nn.h:220
ffi::String kernel_layout
Definition: nn.h:227
ffi::Array< int64_t > dilation
Definition: nn.h:224
ffi::String data_layout
Definition: nn.h:226
ffi::Array< int64_t > padding
Definition: nn.h:222
int groups
Definition: nn.h:225
ffi::Array< int64_t > strides
Definition: nn.h:221
ffi::Array< int64_t > output_padding
Definition: nn.h:223
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Conv2DTransposeAttrs", Conv2DTransposeAttrs, BaseAttrsNode)
ffi::String out_layout
Definition: nn.h:228
static void RegisterReflection()
Definition: nn.h:231
DataType out_dtype
Definition: nn.h:229
Attributes used in Conv3d operator.
Definition: nn.h:123
ffi::String kernel_layout
Definition: nn.h:129
ffi::String out_layout
Definition: nn.h:130
ffi::Array< int64_t > strides
Definition: nn.h:124
static void RegisterReflection()
Definition: nn.h:133
ffi::Array< int64_t > dilation
Definition: nn.h:126
DataType out_dtype
Definition: nn.h:131
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Conv3DAttrs", Conv3DAttrs, BaseAttrsNode)
ffi::String data_layout
Definition: nn.h:128
ffi::Array< int64_t > padding
Definition: nn.h:125
int groups
Definition: nn.h:127
Attributes used in Conv3dTranspose operator.
Definition: nn.h:271
ffi::String out_layout
Definition: nn.h:279
ffi::Array< int64_t > padding
Definition: nn.h:273
ffi::Array< int64_t > strides
Definition: nn.h:272
ffi::Array< int64_t > dilation
Definition: nn.h:275
int groups
Definition: nn.h:276
static void RegisterReflection()
Definition: nn.h:282
DataType out_dtype
Definition: nn.h:280
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Conv3DTransposeAttrs", Conv3DTransposeAttrs, BaseAttrsNode)
ffi::String data_layout
Definition: nn.h:277
ffi::String kernel_layout
Definition: nn.h:278
ffi::Array< int64_t > output_padding
Definition: nn.h:274
Attributes used in dropout operator.
Definition: nn.h:715
double rate
Definition: nn.h:716
static void RegisterReflection()
Definition: nn.h:718
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.DropoutAttrs", DropoutAttrs, BaseAttrsNode)
Attributes used in group_norm operator.
Definition: nn.h:627
ffi::Array< Integer > axes
Definition: nn.h:630
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.GroupNormAttrs", GroupNormAttrs, BaseAttrsNode)
int num_groups
Definition: nn.h:628
int channel_axis
Definition: nn.h:629
double epsilon
Definition: nn.h:631
bool center
Definition: nn.h:632
static void RegisterReflection()
Definition: nn.h:635
bool scale
Definition: nn.h:633
Attributes used in instance_norm operator.
Definition: nn.h:656
bool center
Definition: nn.h:660
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.InstanceNormAttrs", InstanceNormAttrs, BaseAttrsNode)
double epsilon
Definition: nn.h:659
bool scale
Definition: nn.h:661
ffi::Array< Integer > axes
Definition: nn.h:658
static void RegisterReflection()
Definition: nn.h:663
int channel_axis
Definition: nn.h:657
Attributes used in layer_norm operator.
Definition: nn.h:605
ffi::Array< Integer > axes
Definition: nn.h:606
bool scale
Definition: nn.h:609
static void RegisterReflection()
Definition: nn.h:611
bool center
Definition: nn.h:608
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.LayerNormAttrs", LayerNormAttrs, BaseAttrsNode)
double epsilon
Definition: nn.h:607
Attributes used in softmax operators.
Definition: nn.h:538
static void RegisterReflection()
Definition: nn.h:541
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.LeakyReluAttrs", LeakyReluAttrs, BaseAttrsNode)
double alpha
Definition: nn.h:539
Attributes used in nll_loss operator.
Definition: nn.h:698
static void RegisterReflection()
Definition: nn.h:702
ffi::String reduction
Definition: nn.h:699
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.NLLLossAttrs", NLLLossAttrs, BaseAttrsNode)
int ignore_index
Definition: nn.h:700
Attributes used in PReLU operator.
Definition: nn.h:566
static void RegisterReflection()
Definition: nn.h:569
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.PReluAttrs", PReluAttrs, BaseAttrsNode)
int axis
Definition: nn.h:567
Attributes used for the padding operator.
Definition: nn.h:748
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.PadAttrs", PadAttrs, BaseAttrsNode)
ffi::Array< Integer > pad_width
Definition: nn.h:749
tvm::ffi::String pad_mode
Definition: nn.h:751
double pad_value
Definition: nn.h:750
static void RegisterReflection()
Definition: nn.h:753
Attributes used for the pixel shuffle operator.
Definition: nn.h:771
int upscale_factor
Definition: nn.h:772
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.PixelShuffleAttrs", PixelShuffleAttrs, BaseAttrsNode)
static void RegisterReflection()
Definition: nn.h:774
Attributes used in max_pool1d and avg_pool1d operator.
Definition: nn.h:324
ffi::Array< int64_t > strides
Definition: nn.h:326
ffi::Array< int64_t > dilation
Definition: nn.h:328
static void RegisterReflection()
Definition: nn.h:334
ffi::Array< int64_t > pool_size
Definition: nn.h:325
ffi::String layout
Definition: nn.h:331
ffi::Array< int64_t > padding
Definition: nn.h:327
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Pool1DAttrs", Pool1DAttrs, BaseAttrsNode)
bool count_include_pad
Definition: nn.h:330
ffi::String out_layout
Definition: nn.h:332
bool ceil_mode
Definition: nn.h:329
Attributes used in max_pool2d and avg_pool2d operator.
Definition: nn.h:365
ffi::Array< int64_t > pool_size
Definition: nn.h:366
static void RegisterReflection()
Definition: nn.h:375
bool count_include_pad
Definition: nn.h:371
ffi::Array< int64_t > dilation
Definition: nn.h:369
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Pool2DAttrs", Pool2DAttrs, BaseAttrsNode)
ffi::String out_layout
Definition: nn.h:373
ffi::Array< int64_t > padding
Definition: nn.h:368
bool ceil_mode
Definition: nn.h:370
ffi::Array< int64_t > strides
Definition: nn.h:367
ffi::String layout
Definition: nn.h:372
Attributes used in max_pool3d and avg_pool3d operator.
Definition: nn.h:408
ffi::Array< int64_t > strides
Definition: nn.h:410
bool ceil_mode
Definition: nn.h:413
ffi::String out_layout
Definition: nn.h:416
ffi::String layout
Definition: nn.h:415
static void RegisterReflection()
Definition: nn.h:418
bool count_include_pad
Definition: nn.h:414
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.Pool3DAttrs", Pool3DAttrs, BaseAttrsNode)
ffi::Array< int64_t > dilation
Definition: nn.h:412
ffi::Array< int64_t > padding
Definition: nn.h:411
ffi::Array< int64_t > pool_size
Definition: nn.h:409
Attributes used in rms_norm operator.
Definition: nn.h:682
ffi::Array< Integer > axes
Definition: nn.h:683
double epsilon
Definition: nn.h:684
static void RegisterReflection()
Definition: nn.h:686
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.RMSNormAttrs", RMSNormAttrs, BaseAttrsNode)
Attributes used in softmax operators.
Definition: nn.h:526
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.SoftmaxAttrs", SoftmaxAttrs, BaseAttrsNode)
int axis
Definition: nn.h:527
static void RegisterReflection()
Definition: nn.h:529
Attributes used in softplus operators.
Definition: nn.h:550
double threshold
Definition: nn.h:552
double beta
Definition: nn.h:551
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.SoftplusAttrs", SoftplusAttrs, BaseAttrsNode)
static void RegisterReflection()
Definition: nn.h:554