From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2592043237; Sun, 29 Oct 2023 14:25:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB5B74027C; Sun, 29 Oct 2023 14:25:16 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 4E0CD400D5 for ; Sun, 29 Oct 2023 14:25:15 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39TCdJUC025149 for ; Sun, 29 Oct 2023 06:25:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=/mz/A3LoVgfF9KEVytYcllC2iZMW9ullXVjPFgf7jOo=; b=NTdbmZRfUtvIGQ/Xd2jPitiBAKFz/sAOEDAyRLQY6bFMTXgtppKXmmRLeX5YAVzZHrlr akOvFyXB5ds0DgglrLfjDuOkQgvakVSvz2rd/9KTdgWs4I7wrZED/7NFKK7H7ivlGo5Y mvIa1jXEP1p7pezesCO7sdDnHNWFvVLSy0JdRTlZjmKzxGfbChrQE2tKsG9Fs4T/U7ko 6YLE5LrVer3++BlFSYeMfxgRwsRINYVExak6m3pf2wVFtyLsn47vmZlvAhmymTJxTs5e hU19lhBteAimI7bDJVvhsyow9yNUFYt3PFrdFoQcj5M3ZCYOtMMD0SgGy6ons0Gx03/L xw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3u0ynqb5c6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 29 Oct 2023 06:25:14 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 29 Oct 2023 06:25:12 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sun, 29 Oct 2023 06:25:12 -0700 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id 42FBD3F70A0; Sun, 29 Oct 2023 06:25:12 -0700 (PDT) From: Srikanth Yalavarthi To: Srikanth Yalavarthi CC: , , , , Subject: [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info Date: Sun, 29 Oct 2023 06:25:08 -0700 Message-ID: <20231029132508.21530-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: QIQcBRocrZbx-LVqJX6wFTgt401REk0A X-Proofpoint-GUID: QIQcBRocrZbx-LVqJX6wFTgt401REk0A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-29_01,2023-10-27_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Update scale factor in IO info of TVM models from metadata. Fixes: 35c3e790b4a0 ("ml/cnxk: update internal info for TVM model") Signed-off-by: Srikanth Yalavarthi --- drivers/ml/cnxk/mvtvm_ml_model.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ml/cnxk/mvtvm_ml_model.c b/drivers/ml/cnxk/mvtvm_ml_model.c index d28bd88a08..cd9461302c 100644 --- a/drivers/ml/cnxk/mvtvm_ml_model.c +++ b/drivers/ml/cnxk/mvtvm_ml_model.c @@ -216,6 +216,7 @@ mvtvm_ml_model_io_info_set(struct cnxk_ml_model *model) model->mvtvm.info.input[i].sz_q = model->mvtvm.info.input[i].nb_elements * rte_ml_io_type_size_get(model->mvtvm.info.input[i].qtype); + model->mvtvm.info.input[i].scale = metadata->input[i].scale; model->mvtvm.info.total_input_sz_d += model->mvtvm.info.input[i].sz_d; model->mvtvm.info.total_input_sz_q += model->mvtvm.info.input[i].sz_q; @@ -256,6 +257,7 @@ mvtvm_ml_model_io_info_set(struct cnxk_ml_model *model) model->mvtvm.info.output[i].sz_q = model->mvtvm.info.output[i].nb_elements * rte_ml_io_type_size_get(model->mvtvm.info.output[i].qtype); + model->mvtvm.info.output[i].scale = metadata->output[i].scale; model->mvtvm.info.total_output_sz_d += model->mvtvm.info.output[i].sz_d; model->mvtvm.info.total_output_sz_q += model->mvtvm.info.output[i].sz_q; -- 2.42.0