24 #ifndef TVM_RELAY_ATTRS_IMAGE_H_ 25 #define TVM_RELAY_ATTRS_IMAGE_H_ 49 "Dimension ordering of input data. Can be 'NCW', 'NWC', etc." 50 "'N', 'C', 'W' stands for batch, channel and width" 51 "dimensions respectively. Resize is applied on the" 54 "Specify the mode to use for scaling." 55 "nearest_neighbor - Nearest Neighbor" 56 "linear - Linear Interpolation" 57 "cubic - Cubic Interpolation");
59 .set_default(
"half_pixel")
61 "Describes how to transform the coordinate in the resized tensor" 62 "to the coordinate in the original tensor." 63 "Refer to the ONNX Resize operator specification for details" 64 "Available options are half_pixel, align_corners and asymmetric");
68 "indicates how to find the \"nearest\" pixel in nearest_neighbor method" 69 "Available options are round, floor, and ceil.");
72 .describe(
"Spline Coefficient for cubic interpolation");
75 .describe(
"Flag to exclude exterior of the image during cubic interpolation");
94 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc." 95 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width" 96 "dimensions respectively. Resize is applied on the 'H' and" 99 "Specify the mode to use for scaling." 100 "nearest_neighbor - Nearest Neighbor" 101 "linear - Bilinear Interpolation" 102 "cubic - Bicubic Interpolation");
104 .set_default(
"half_pixel")
106 "Describes how to transform the coordinate in the resized tensor" 107 "to the coordinate in the original tensor." 108 "Refer to the ONNX Resize operator specification for details" 109 "Available options are half_pixel, align_corners and asymmetric");
111 .set_default(
"round")
113 "indicates how to find the \"nearest\" pixel in nearest_neighbor method" 114 "Available options are round, floor, and ceil.");
117 .describe(
"Spline Coefficient for Bicubic Interpolation");
120 .describe(
"Flag to exclude exterior of the image during bicubic interpolation");
139 "Dimension ordering of input data. Can be 'NCDHW', 'NDHWC', etc." 140 "'N', 'C', 'D', 'H', 'W' stands for batch, channel, depth, height, and width" 141 "dimensions respectively. Resize3d is applied on the 'D', 'H' and" 144 "Specify the mode to use for scaling." 145 "nearest_neighbor - Nearest Neighbor" 146 "linear - Trilinear Interpolation" 147 "cubic - Tricubic Interpolation");
149 .set_default(
"half_pixel")
151 "Describes how to transform the coordinate in the resized tensor" 152 "to the coordinate in the original tensor." 153 "Refer to the ONNX Resize operator specification for details" 154 "Available options are half_pixel, align_corners and asymmetric");
156 .set_default(
"round")
158 "indicates how to find the \"nearest\" pixel in nearest_neighbor method" 159 "Available options are round, floor, and ceil.");
162 .describe(
"Spline Coefficient for Tricubic Interpolation");
165 .describe(
"Flag to exclude exterior of the image during tricubic interpolation");
181 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc." 182 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width" 183 "dimensions respectively. Resize is applied on the 'H' and" 186 .set_default(
"bilinear")
188 "Specify the mode to use for scaling." 189 "nearest_neighbor - Nearest Neighbor" 190 "bilinear - Bilinear Interpolation");
193 .describe(
"Specify value for extrapolation.");
210 .describe(
"Specifies the strides of the sliding window. [stride_height, stride_width].");
214 "If padding is non-zero, then the input is implicitly zero-padded" 215 "Padding support both symmetric and asymmetric as" 216 "one int : same padding used on all sides" 217 "two int : bottom, right will use same padding as top, left" 218 "four int : padding width in the order of (top, left, bottom, right)");
221 .describe(
"Specifies the dilation rate to use. [dilation_height, dilation_width]");
225 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc." 226 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width" 227 "dimensions respectively. Convolution is applied on the 'H' and" 232 "Dimension ordering of weight. Can be 'IHW', 'HWI', etc." 233 "'I', 'H', 'W' stands for input_channel, height, and width" 234 "dimensions respectively.");
237 .describe(
"Output data type, set to explicit type under mixed precision setting");
246 TVM_ATTR_FIELD(target_shape).describe(
"Specifies the output shape (H, W).");
257 .set_default(
"bilinear")
259 "Specify the mode to use for scaling." 260 "bilinear - Bilinear Interpolation");
262 "Dimension ordering of input data. Can be 'NCHW', 'NHWC', etc." 263 "'N', 'C', 'H', 'W' stands for batch, channel, height, and width" 264 "dimensions respectively. Resize is applied on the 'H' and" 271 #endif // TVM_RELAY_ATTRS_IMAGE_H_ std::string rounding_method
Definition: image.h:86
TVM_DECLARE_ATTRS(CropAndResizeAttrs, "relay.attrs.CropAndResizeAttrs")
Definition: image.h:178
DataType out_dtype
Definition: image.h:134
DataType out_dtype
Definition: image.h:89
double cubic_alpha
Definition: image.h:132
TVM_DECLARE_ATTRS(Resize2DAttrs, "relay.attrs.Resize2DAttrs")
Definition: image.h:91
DataType out_dtype
Definition: image.h:44
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
Array< IndexExpr > padding
Definition: image.h:201
Attributes used in dilation operators.
Definition: image.h:199
Attributes used in image crop_and_resize operator.
Definition: image.h:171
Array< IndexExpr > size
Definition: image.h:82
std::string data_layout
Definition: image.h:203
DataType out_dtype
Definition: image.h:176
Attributes used in image resize1d operator.
Definition: image.h:36
String layout
Definition: image.h:253
int cubic_exclude
Definition: image.h:88
TVM_DECLARE_ATTRS(Resize3DAttrs, "relay.attrs.Resize3DAttrs")
Definition: image.h:136
std::string rounding_method
Definition: image.h:131
Helpers for attribute objects.
double cubic_alpha
Definition: image.h:87
Array< IndexExpr > target_shape
Definition: image.h:243
std::string layout
Definition: image.h:173
Array< IndexExpr > size
Definition: image.h:37
std::string method
Definition: image.h:39
Attributes used in image affine_grid operator.
Definition: image.h:242
std::string kernel_layout
Definition: image.h:204
String method
Definition: image.h:252
TVM_DECLARE_ATTRS(GridSampleAttrs, "relay.attrs.GridSampleAttrs")
Definition: image.h:255
Runtime primitive data type.
Definition: data_type.h:41
DataType out_dtype
Definition: image.h:205
Array< IndexExpr > dilations
Definition: image.h:202
std::string layout
Definition: image.h:128
int cubic_exclude
Definition: image.h:133
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:270
std::string coordinate_transformation_mode
Definition: image.h:40
std::string layout
Definition: image.h:38
std::string method
Definition: image.h:129
#define TVM_ATTR_FIELD(FieldName)
Declare an attribute field.
Definition: attrs.h:76
Reference to string objects.
Definition: string.h:129
TVM_DECLARE_ATTRS(Resize1DAttrs, "relay.attrs.Resize1DAttrs")
Definition: image.h:46
int cubic_exclude
Definition: image.h:43
Attributes used in image resize2d operator.
Definition: image.h:81
double extrapolation_value
Definition: image.h:175
Array< IndexExpr > strides
Definition: image.h:200
DataType NullValue< DataType >()
Definition: attrs.h:90
Array< IndexExpr > size
Definition: image.h:127
std::string rounding_method
Definition: image.h:41
Attributes used in image grid_sample operator.
Definition: image.h:251
The base class of the all the Use "curiously recurring template pattern".
Definition: attrs.h:793
std::string method
Definition: image.h:174
Base classes for the Relay IR.
Attributes used in image resize3d operator.
Definition: image.h:126
std::string method
Definition: image.h:84
double cubic_alpha
Definition: image.h:42
TObjectRef NullValue()
Create a NodeRef type that represents null.
Definition: attrs.h:84
TVM_DECLARE_ATTRS(Dilation2DAttrs, "relay.attrs.Dilation2DAttrs")
Definition: image.h:207
Array< IndexExpr > crop_size
Definition: image.h:172
std::string coordinate_transformation_mode
Definition: image.h:85
TVM_DECLARE_ATTRS(AffineGridAttrs, "relay.attrs.AffineGridAttrs")
Definition: image.h:245
std::string layout
Definition: image.h:83
std::string coordinate_transformation_mode
Definition: image.h:130