frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

[Error 5] Toolkit Error: Stage Details Not Supported: Switch

Hi guys

So I am quite new to the NCS.
However, I have a ResNet 18 network which I have trained myself, and I would like to run it on the NCS.
I sadly just get to the compile stage when i hit the error: "[Error 5] Toolkit Error: Stage Details Not Supported: Switch".
I use this command: "mvNCCompile resnet_18_5.meta -w resnet_18_5 -in input/X -on FullyConnected/BiasAdd -is 480 270 -s 12".

I have found that "Switch" refers to an operation in my Tensorflow graph used by several BatchNormalization layers.
However, since it states in your documentation that you support BN i thought it would work.

I am using Ubuntu on a VM on Win7.

Hope some of you great people in here can help. :smile:

Best Regards
Kristian Jensen

Comments

  • 4 Comments sorted by Votes Date Added
  • @krnj Can you provide your network so that I can reproduce and help debug your issue?

  • Hey @Tome_at_Intel , i figured out one more thing that is relevant. My code is using the tf.cond operation which is where the switch occur and I am not sure if you support?

  • @krnj I am not seeing the tf.cond in TensorFlowParser.py. I wonder if you can replace the tf.switch or tf.cond with python conditional statements. If you can provide a link to your network, it would be helpful to us. Thanks.

  • Hi @Tome_at_Intel, I've been facing the same error. Replacing tf cond with python conditional statements wouldn't work because tf.cond is evaluated lazily on the Tensorflow computational graph at runtime whereas python conditionals are evaluated at graph construction time. Please address this issue as soon as possible, as this layer seems to be an integral part of custom networks.

Sign In or Register to comment.