title: How can I duplicate tensorflow layer?
body: <p>Suppose I have a layer (i.e. a collection of ops under the same name scope) in Tensorflow. How can I duplicate it together with input connections?</p>
  
  <p>More specifically, suppose I have the following graph:</p>
  
  <pre><code>A --&gt; B --&gt; C --&gt; D
  </code></pre>
  
  <p>now I want to duplicate <code>C</code> as <code>C1</code>, where <code>C</code> is a whole name scope:</p>
  
  <pre><code>A --&gt; B --&gt; C --&gt; D
          \-&gt; C
  </code></pre>
  
  <p>How can I do that in TensorFlow?</p>