title: TensorFlow：How to calculate the Euclidean distance between two tensor?
body: <p><a href="https://i.stack.imgur.com/xKalb.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>How to get from A and B to C? A and B are tensors and belong to the output of the network. Now I need to get C from the output operation of the two networks, and then use C to calculate loss function.</p>
  
  <p>The key problem is to optimize A and B by loss function in the later stage, so it must be completed in the form of computational graphs. The TensorFlow formulas for calculating tensors don't seem to be able to solve this problem.</p>