* [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info
@ 2023-10-29 13:25 Srikanth Yalavarthi
2023-11-03 16:40 ` [PATCH v2 " Srikanth Yalavarthi
2023-11-06 15:13 ` [PATCH v1 " Shivah Shankar Shankar Narayan Rao
0 siblings, 2 replies; 5+ messages in thread
From: Srikanth Yalavarthi @ 2023-10-29 13:25 UTC (permalink / raw)
To: Srikanth Yalavarthi; +Cc: dev, sshankarnara, aprabhu, ptakkar, jerinj
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 <syalavarthi@marvell.com>
---
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/1] ml/cnxk: fix updating internal I/O info
2023-10-29 13:25 [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info Srikanth Yalavarthi
@ 2023-11-03 16:40 ` Srikanth Yalavarthi
2023-11-06 10:56 ` Anup Prabhu
2023-11-06 15:13 ` [PATCH v1 " Shivah Shankar Shankar Narayan Rao
1 sibling, 1 reply; 5+ messages in thread
From: Srikanth Yalavarthi @ 2023-11-03 16:40 UTC (permalink / raw)
To: Srikanth Yalavarthi; +Cc: dev, sshankarnara, aprabhu, ptakkar, jerinj
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 <syalavarthi@marvell.com>
---
v2:
- Rebase over latest main
v1:
- Initial PATCH
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH v2 1/1] ml/cnxk: fix updating internal I/O info
2023-11-03 16:40 ` [PATCH v2 " Srikanth Yalavarthi
@ 2023-11-06 10:56 ` Anup Prabhu
0 siblings, 0 replies; 5+ messages in thread
From: Anup Prabhu @ 2023-11-06 10:56 UTC (permalink / raw)
To: Srikanth Yalavarthi, Srikanth Yalavarthi
Cc: dev, Shivah Shankar Shankar Narayan Rao, Prince Takkar,
Jerin Jacob Kollanukkaran
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
> -----Original Message-----
> From: Srikanth Yalavarthi <syalavarthi@marvell.com>
> Sent: Friday, November 3, 2023 10:10 PM
> To: Srikanth Yalavarthi <syalavarthi@marvell.com>
> Cc: dev@dpdk.org; Shivah Shankar Shankar Narayan Rao
> <sshankarnara@marvell.com>; Anup Prabhu <aprabhu@marvell.com>;
> Prince Takkar <ptakkar@marvell.com>; Jerin Jacob Kollanukkaran
> <jerinj@marvell.com>
> Subject: [PATCH v2 1/1] ml/cnxk: fix updating internal I/O info
>
> 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 <syalavarthi@marvell.com>
Acked-by: Anup Prabhu <aprabhu@marvell.com>
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 35191 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info
2023-10-29 13:25 [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info Srikanth Yalavarthi
2023-11-03 16:40 ` [PATCH v2 " Srikanth Yalavarthi
@ 2023-11-06 15:13 ` Shivah Shankar Shankar Narayan Rao
2023-11-07 7:11 ` Jerin Jacob
1 sibling, 1 reply; 5+ messages in thread
From: Shivah Shankar Shankar Narayan Rao @ 2023-11-06 15:13 UTC (permalink / raw)
To: Srikanth Yalavarthi, Srikanth Yalavarthi
Cc: dev, Anup Prabhu, Prince Takkar, Jerin Jacob Kollanukkaran
[-- Attachment #1: Type: text/plain, Size: 724 bytes --]
> -----Original Message-----
> From: Srikanth Yalavarthi <syalavarthi@marvell.com>
> Sent: Sunday, October 29, 2023 6:55 PM
> To: Srikanth Yalavarthi <syalavarthi@marvell.com>
> Cc: dev@dpdk.org; Shivah Shankar Shankar Narayan Rao
> <sshankarnara@marvell.com>; Anup Prabhu <aprabhu@marvell.com>;
> Prince Takkar <ptakkar@marvell.com>; Jerin Jacob Kollanukkaran
> <jerinj@marvell.com>
> Subject: [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info
>
> 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 <syalavarthi@marvell.com>
Acked-by: Shivah Shankar S <sshankarnara@marvell.com>
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 35851 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info
2023-11-06 15:13 ` [PATCH v1 " Shivah Shankar Shankar Narayan Rao
@ 2023-11-07 7:11 ` Jerin Jacob
0 siblings, 0 replies; 5+ messages in thread
From: Jerin Jacob @ 2023-11-07 7:11 UTC (permalink / raw)
To: Shivah Shankar Shankar Narayan Rao
Cc: Srikanth Yalavarthi, dev, Anup Prabhu, Prince Takkar,
Jerin Jacob Kollanukkaran
On Mon, Nov 6, 2023 at 8:43 PM Shivah Shankar Shankar Narayan Rao
<sshankarnara@marvell.com> wrote:
>
> > -----Original Message-----
> > From: Srikanth Yalavarthi <syalavarthi@marvell.com>
> > Sent: Sunday, October 29, 2023 6:55 PM
> > To: Srikanth Yalavarthi <syalavarthi@marvell.com>
> > Cc: dev@dpdk.org; Shivah Shankar Shankar Narayan Rao
> > <sshankarnara@marvell.com>; Anup Prabhu <aprabhu@marvell.com>;
> > Prince Takkar <ptakkar@marvell.com>; Jerin Jacob Kollanukkaran
> > <jerinj@marvell.com>
> > Subject: [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info
> >
> > 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 <syalavarthi@marvell.com>
> Acked-by: Shivah Shankar S <sshankarnara@marvell.com>
Applied to dpdk-next-net-mrvl/for-next-net. Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-11-07 7:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-29 13:25 [PATCH v1 1/1] ml/cnxk: fix updating internal I/O info Srikanth Yalavarthi
2023-11-03 16:40 ` [PATCH v2 " Srikanth Yalavarthi
2023-11-06 10:56 ` Anup Prabhu
2023-11-06 15:13 ` [PATCH v1 " Shivah Shankar Shankar Narayan Rao
2023-11-07 7:11 ` Jerin Jacob
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).