Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6376 Discussions

Is there a method to check parameters shape in OpenVino

hopeai
Beginner
314 Views

Hi there,

I would like to know if there is a method to check the size of the parameters after loading network using IENetwork(model=*.xml, weights=*.bin). Currently, we can get the output size of each layer using the following code, however, I'm interested to check shape of the weights without looking at *.xml file.

for l in net.layers.values():
    print(l.type, l.shape)

 

0 Kudos
1 Solution
Shubha_R_Intel
Employee
314 Views

Dear Abdollahi Aghdam, Omid,

Throughout our samples we use something like:

reader->getData(inputInfoItem.second->getTensorDesc().getDims()[3],
                                    inputInfoItem.second->getTensorDesc().getDims()[2]));

 

Please check the OpenVino samples which come with the installation.

Thanks,

Shubha

View solution in original post

0 Kudos
3 Replies
Shubha_R_Intel
Employee
315 Views

Dear Abdollahi Aghdam, Omid,

Throughout our samples we use something like:

reader->getData(inputInfoItem.second->getTensorDesc().getDims()[3],
                                    inputInfoItem.second->getTensorDesc().getDims()[2]));

 

Please check the OpenVino samples which come with the installation.

Thanks,

Shubha

0 Kudos
hopeai
Beginner
314 Views

Dear Shubha R.,

Thank you for the information.

Kind regards,

Omid

0 Kudos
Shubha_R_Intel
Employee
314 Views

Dearest Abdollahi Aghdam, Omid,

Sure. Thanks for using OpenVino !

Shubha

0 Kudos
Reply