Ashna Eldho
Ashna Eldho

Reputation: 482

How to find the exact name of the output node in .pb file?

I was trying to freeze a pb file for using in the OpenVino. For freezing, i need to know the output node name. For that, i tried loading the pb file and reading the output names, but, it got an error. Then i tried to get the output name from the model summary and it was dense_7 (Dense).

I followed the command in https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html#freeze-the-tensorflow-model to freeze the model. But when i try the output node name as dense_7 (Dense), I'm getting the following error:

AssertionError: dense_7 (Dense) is not in graph

I'm attaching the model summary along with this.enter image description here

Is there any way to read the correct output name?

Upvotes: 1

Views: 1212

Answers (1)

Rommel_Intel
Rommel_Intel

Reputation: 1413

Upvotes: 3

Related Questions