title: Taking the maximum values of each row in a tensor [PyTorch]
body: <p>Suppose I have a tensor of the form</p>
  
  <pre><code>[[-5, 0, -1],
   [3, 100, 87],
   [17, -34, 2],
   [45, 1, 25]]
  </code></pre>
  
  <p>I want to find the maximum value in each row and return a rank 1 tensor as follows:</p>
  
  <pre><code>[0,
   100,
   17,
   45]
  </code></pre>
  
  <p>How would I do this in PyTorch?</p>