<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 3.3.0</li>
<li>Operating System / Platform =&gt; Arch Linux 64-bit</li>
<li>Compiler =&gt; g++ 7.1.1</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I am trying to load a tensorflow model in OpenCV, but it fails on <code class="notranslate">populateNet</code> with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dropout/Shape:Shape(Relu_2)
T:0
out_type:[ ]
OpenCV Error: Unspecified error (Unknown layer type Shape in op dropout/Shape) in populateNet, file /build/opencv/src/opencv-3.3.0/modules/dnn/src/tensorflow/tf_importer.cpp, line 883
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/opencv/src/opencv-3.3.0/modules/dnn/src/tensorflow/tf_importer.cpp:883: error: (-2) Unknown layer type Shape in op dropout/Shape in function populateNet"><pre class="notranslate"><code class="notranslate">dropout/Shape:Shape(Relu_2)
T:0
out_type:[ ]
OpenCV Error: Unspecified error (Unknown layer type Shape in op dropout/Shape) in populateNet, file /build/opencv/src/opencv-3.3.0/modules/dnn/src/tensorflow/tf_importer.cpp, line 883
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/opencv/src/opencv-3.3.0/modules/dnn/src/tensorflow/tf_importer.cpp:883: error: (-2) Unknown layer type Shape in op dropout/Shape in function populateNet
</code></pre></div>
<p dir="auto">I think this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="237401032" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv_contrib/issues/1241" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv_contrib/issues/1241/hovercard" href="https://github.com/opencv/opencv_contrib/issues/1241">opencv/opencv_contrib#1241</a></p>
<p dir="auto">Are there any plans for supporting <code class="notranslate">shape</code> layers?</p>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt;  3.3.0</li>
<li>Operating System / Platform =&gt; Ubuntu 16</li>
<li>Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I had trained a model for MNIST with tensorflow1.3.0, the model contains a dropout layout.</p>
<p dir="auto"><code class="notranslate">keep_prob = tf.placeholder(tf.float32, name='keep_prob');</code><br>
<code class="notranslate">h_fc1 = tf.nn.dropout(h_fc1, keep_prob);</code></p>
<p dir="auto">Then I use the model like below</p>
<p dir="auto"><code class="notranslate">mNet = cv2.dnn.readNetFromTensorflow(model)</code></p>
<p dir="auto">The error is:</p>
<p dir="auto">OpenCV Error: Unspecified error (Unknown layer type Shape in op dropout/Shape) in populateNet</p>
<p dir="auto">=========</p>
<p dir="auto">If the model not contain dropout layer, everything is ok.</p>
<h5 dir="auto">Steps to reproduce</h5>