@@ -978,15 +978,15 @@ typedef enum {
978978 * (a mini-batch of 2D inputs with additional channel dimension)
979979 * as described in the paper Group Normalization.
980980 *
981- * Inputs:
981+ * Inputs:
982982 * * 0: input, a NNADAPTER_FLOAT32, NNADAPTER_QUANT_INT8_SYMM_PER_LAYER tensor
983983 * of shape [N, C, ...].
984984 * * 1: scale, a NNADAPTER_FLOAT32 tensor of shape [C].
985985 * * 2: bias, a NNADAPTER_FLOAT32 tensor of shape [C].
986986 * * 3: epsilon, a NNADAPTER_FLOAT32 tensor of shape [1], a small value added
987987 * to the variance to prevent division by zero, defaults to 1e-5.
988988 * * 4: groups, a NNADAPTER_INT32 tensor of shape [1], the number of groups
989- * that divided from channels.
989+ * that divided from channels.
990990 *
991991 * Outputs:
992992 * * 0: output, a tensor of the same shape and type as `input`.
@@ -1630,19 +1630,19 @@ typedef enum {
16301630 NNADAPTER_REDUCE_SUM ,
16311631
16321632 /**
1633- * Performs element-wise rectified linear activation.
1634- * The output is calculated using this formula:
1635- * `output` = max(0, `input`)
1636- *
1637- * Inputs:
1638- * * 0: input, a NNADAPTER_FLOAT32,
1639- * NNADAPTER_QUANT_INT8_SYMM_PER_LAYER tensor.
1640- *
1641- * Outputs:
1642- * * 0: output, a tensor of the same shape and type as `input`.
1643- *
1644- * Available since version 1.
1645- */
1633+ * Performs element-wise rectified linear activation.
1634+ * The output is calculated using this formula:
1635+ * `output` = max(0, `input`)
1636+ *
1637+ * Inputs:
1638+ * * 0: input, a NNADAPTER_FLOAT32,
1639+ * NNADAPTER_QUANT_INT8_SYMM_PER_LAYER tensor.
1640+ *
1641+ * Outputs:
1642+ * * 0: output, a tensor of the same shape and type as `input`.
1643+ *
1644+ * Available since version 1.
1645+ */
16461646 NNADAPTER_RELU ,
16471647
16481648 /**
@@ -1764,6 +1764,28 @@ typedef enum {
17641764 */
17651765 NNADAPTER_ROI_ALIGN ,
17661766
1767+ /**
1768+ * Roll the tensor input along the given dimension(s). Elements that are
1769+ * shifted beyond the last position are re-introduced at the first position.
1770+ * If axes is None, the tensor will be flattened before rolling and then
1771+ * restored to the original shape.
1772+ *
1773+ * Inputs:
1774+ * * 0: input, a NNADAPTER_FLOAT32, NNADAPTER_QUANT_INT8_SYMM_PER_LAYER
1775+ * tensor.
1776+ * * 1: shifts, a NNADAPTER_TENSOR_INT32 tensor, It
1777+ * represents the number of places by which the elements of the tensor are
1778+ * shifted.
1779+ * * 2: axes, a NNADAPTER_TENSOR_INT32 tensor, It
1780+ * represents axis along which to roll.
1781+ *
1782+ * Outputs:
1783+ * * 0: output, a tensor of the same shape and type as `input`.
1784+ *
1785+ * Available since version 1.
1786+ */
1787+ NNADAPTER_ROLL ,
1788+
17671789 /**
17681790 * Outputs an 1-D tensor containing the shape of the input tensor.
17691791 *
@@ -1909,19 +1931,19 @@ typedef enum {
19091931 NNADAPTER_SPLIT ,
19101932
19111933 /**
1912- * Performs element-wise square operation.
1913- * The output is calculated using this formula:
1914- * `output` = `input`^2
1915- *
1916- * Inputs:
1917- * * 0: input, a NNADAPTER_FLOAT32,
1918- * NNADAPTER_QUANT_INT8_SYMM_PER_LAYER tensor.
1919- *
1920- * Outputs:
1921- * * 0: output, a tensor of the same shape and type as `input`.
1922- *
1923- * Available since version 1.
1924- */
1934+ * Performs element-wise square operation.
1935+ * The output is calculated using this formula:
1936+ * `output` = `input`^2
1937+ *
1938+ * Inputs:
1939+ * * 0: input, a NNADAPTER_FLOAT32,
1940+ * NNADAPTER_QUANT_INT8_SYMM_PER_LAYER tensor.
1941+ *
1942+ * Outputs:
1943+ * * 0: output, a tensor of the same shape and type as `input`.
1944+ *
1945+ * Available since version 1.
1946+ */
19251947 NNADAPTER_SQUARE ,
19261948
19271949 /**
0 commit comments