Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5962 Discussions

Is there a method to check parameters shape in OpenVino

hopeai
Beginner
191 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
191 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

3 Replies
Shubha_R_Intel
Employee
192 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

hopeai
Beginner
191 Views

Dear Shubha R.,

Thank you for the information.

Kind regards,

Omid

Shubha_R_Intel
Employee
191 Views

Dearest Abdollahi Aghdam, Omid,

Sure. Thanks for using OpenVino !

Shubha

Reply