Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hopeai
Beginner
121 Views

Is there a method to check parameters shape in OpenVino

Jump to solution

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
121 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
122 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

hopeai
Beginner
121 Views

Dear Shubha R.,

Thank you for the information.

Kind regards,

Omid

Shubha_R_Intel
Employee
121 Views

Dearest Abdollahi Aghdam, Omid,

Sure. Thanks for using OpenVino !

Shubha

Reply