@@ -35,7 +35,9 @@ class Conv2d_CS : public lib_mli::Conv2d_CS {
3535 * of all values in the related perception area of all channels of the input tensor.
3636 *
3737 * @deprected
38+ * Be carefull - you need to use another deprected method to set tiling - SetIterators
3839 * Be carefull - conv2d I/O tensors of rank 4 are deprecated - new interfaces use rank 5
40+ * Be carefull - this is the most deprecated Constructor
3941 *
4042 * @param pd [IN] Platform description
4143 * @param in [IN] input tensor (full shape, BHWCi layout)
@@ -51,6 +53,7 @@ class Conv2d_CS : public lib_mli::Conv2d_CS {
5153
5254 /* *
5355 * @brief Constructor to create an Conv2d_CS compiler support object.
56+ * @deprecated
5457 *
5558 * This constructor can be used to create a Convolution 2D compiler support
5659 * object. This kernel computes each value of the output tensor as the result of convolution operation
@@ -75,36 +78,52 @@ class Conv2d_CS : public lib_mli::Conv2d_CS {
7578 * @brief Constructor to create an Conv2d_CS compiler support object.
7679 *
7780 * This constructor can be used to create a Convolution 2D compiler support
78- * object. This kernel computes each value of the output tensor as the result of convolution operation
81+ * object. This kernel computes each value of the output as the result of convolution operation
7982 * of input with weights.
8083 *
8184 * @param pd [I] Platform description
8285 * @param input [I] Input TensorIterator (BHWGCi layout)
83- * @param input_zp [I] input_zp TensorIterator
84- * @param weights [I] weights TensorIterator (GKyKxCiCo layout)
85- * @param weights_zp [I] weights_zp TensorIterator
86- * @param cfg [I] Conv2DConfig structure
87- * @param output [I] output TensorIterator (BHWGCo layout)
86+ * @param input_zp [I] Input zero point(s) TensorIterator
87+ * @param weights [I] Weights TensorIterator (GKyKxCiCo layout)
88+ * @param weights_zp [I] Weights zero point(s) TensorIterator
89+ * @param cfg [I] Conv2DConfig structure with conv parameters (stride, dilation, paddings)
90+ * @param output [I] Output TensorIterator (BHWGCo layout)
8891 */
8992 Conv2d_CS (const lib_mli::PlatformDescription pd,
9093 const TensorIterator<NoBuffer, kConvIORank , kConvIterRank > &input,
9194 const TensorIterator<NoBuffer, kConvZPRank , kConvIterRank > &input_zp,
9295 const TensorIterator<NoBuffer, kConvWRank , kConvIterRank > &weights,
9396 const TensorIterator<NoBuffer, kConvZPRank , kConvIterRank > &weights_zp,
9497 const Conv2DConfig &cfg,
95- const TensorIterator<NoBuffer, kConvIORank , kConvIterRank > &output) { NOT_IMPLEMENTED_METHOD; } ;
98+ const TensorIterator<NoBuffer, kConvIORank , kConvIterRank > &output);
9699
100+ /* *
101+ * @deprecated
102+ */
97103 mli_status EncodeWeights (Tensor<Buffer, kConvWRank > &weights,
98104 Buffer &encoded_weights,
99105 compression_mode_t mode = compression_mode_t ::Uncompressed) override ;
100106
107+ mli_status EncodeWeightsAndZeroPts (TensorIterator<Buffer, kConvWRank , kConvIterRank >& weights,
108+ TensorIterator<Buffer, kConvZPRank , kConvIterRank >& weights_zp,
109+ Buffer& encoded_weights) override ;
110+
101111 unsigned GetEncodedWeightsSize () override ;
102112
113+ /* *
114+ * @deprecated
115+ */
103116 mli_status EncodeInpZeroPts (Tensor<Buffer, kInpZPRank > &inpzeropts,
104117 Buffer &encoded_inpzeropts) override ;
105118
119+ mli_status EncodeInpZeroPts (TensorIterator<Buffer, kConvZPRank , kConvZPIterRank >& input_zp,
120+ Buffer& encoded_inpzeropts) override ;
121+
106122 unsigned GetEncodedInpZeroPtsSize () override ;
107123
124+ /* *
125+ * @deprecated
126+ */
108127 mli_status EncodeWtsZeroPts (Tensor<Buffer, kConvZPRank > &wtszeropts,
109128 Buffer &encoded_wtszeropts) override ;
110129
@@ -148,7 +167,8 @@ class Conv2d_CS : public lib_mli::Conv2d_CS {
148167
149168 /* *
150169 * @deprecated
151- * Be carefull - conv2d I/O tensors of rank 4 are deprecated - new interfaces use rank 5
170+ * Be carefull - conv2d I/O tensors of rank 4 are deprecated - new interfaces use rank 5
171+ * Be carefull - don't use this method with new Conv2d_CS ctors - only with deprecated ctor that takes tensors
152172 */
153173 mli_status SetIterators (uint32_t output_total_size[4 ],
154174 uint32_t iteration_order[4 ],
@@ -191,6 +211,7 @@ class DepthwiseConv2d_CS : public lib_mli::DepthwiseConv2d_CS {
191211 * @deprecated
192212 * Be carefull - this ctor doesn't support tiling - only single tile size of provided tensors
193213 * Be carefull - depthwise conv2d I/O tensors of rank 4 are deprecated - new interfaces use rank 5
214+ * Be carefull - this is the most deprecated Constructor
194215 */
195216 DepthwiseConv2d_CS (const lib_mli::PlatformDescription pd,
196217 const Tensor<NoBuffer, 4 > &in,
@@ -200,6 +221,7 @@ class DepthwiseConv2d_CS : public lib_mli::DepthwiseConv2d_CS {
200221
201222 /* *
202223 * @brief Constructor of the DepthwiseConv2d_CS object
224+ * @deprecated
203225 */
204226 DepthwiseConv2d_CS (const lib_mli::PlatformDescription pd,
205227 const TensorIterator<NoBuffer, kDepthwiseIORank , kDepthwiseIterRank >& input,
@@ -229,19 +251,35 @@ class DepthwiseConv2d_CS : public lib_mli::DepthwiseConv2d_CS {
229251 const TensorIterator<NoBuffer, kDepthwiseWRank , kDepthwiseIterRank > &weights,
230252 const TensorIterator<NoBuffer, kDepthwiseZPRank , kDepthwiseIterRank > &weights_zp,
231253 const DwConv2DConfig &cfg,
232- const TensorIterator<NoBuffer, kDepthwiseIORank , kDepthwiseIterRank > &output) { NOT_IMPLEMENTED_METHOD; } ;
254+ const TensorIterator<NoBuffer, kDepthwiseIORank , kDepthwiseIterRank > &output);
233255
256+ /* *
257+ * @deprecated
258+ */
234259 mli_status EncodeWeights (Tensor<Buffer, kDepthwiseWRank > &weights,
235260 Buffer &encoded_weights,
236261 compression_mode_t mode = compression_mode_t ::Uncompressed) override ;
237262
263+ mli_status EncodeWeightsAndZeroPts (TensorIterator<Buffer, kDepthwiseWRank , kDepthwiseIterRank >& weights,
264+ TensorIterator<Buffer, kDepthwiseZPRank , kDepthwiseIterRank >& weights_zp,
265+ Buffer& encoded_weights) override ;
266+
238267 unsigned GetEncodedWeightsSize () override ;
239268
269+ /* *
270+ * @deprecated
271+ */
240272 mli_status EncodeInpZeroPts (Tensor<Buffer, kDepthwiseZPRank > &inpzeropts,
241273 Buffer &encoded_inpzeropts) override ;
242274
275+ mli_status EncodeInpZeroPts (TensorIterator<Buffer, kDepthwiseZPRank , kDepthwiseIterRank >& input_zp,
276+ Buffer& encoded_input_zp) override ;
277+
243278 unsigned GetEncodedInpZeroPtsSize () override ;
244279
280+ /* *
281+ * @deprecated
282+ */
245283 mli_status EncodeWtsZeroPts (Tensor<Buffer, kDepthwiseZPRank > &wtszeropts,
246284 Buffer &encoded_wtszeropts) override ;
247285
0 commit comments