parameters: (img, recon)
docstring: Function for displaying an image (as a PyTorch Tensor) and its
          reconstruction also a PyTorch Tensor
docstring_summary: Function for displaying an image (as a PyTorch Tensor) and its
          reconstruction also a PyTorch Tensor
docstring_tokens: Function for displaying an image ( as a PyTorch Tensor ) and its reconstruction also a PyTorch Tensor
function: def view_recon(img, recon):
      ''' Function for displaying an image (as a PyTorch Tensor) and its
          reconstruction also a PyTorch Tensor
      '''
  
      fig, axes = plt.subplots(ncols=2, sharex=True, sharey=True)
      axes[0].imshow(img.numpy().squeeze())
      axes[1].imshow(recon.data.numpy().squeeze())
      for ax in axes:
          ax.axis('off')
          ax.set_adjustable('box-forced')
function_tokens: def view_recon ( img , recon ) : fig , axes = plt . subplots ( ncols = 2 , sharex = True , sharey = True ) axes [ 0 ] . imshow ( img . numpy ( ) . squeeze ( ) ) axes [ 1 ] . imshow ( recon . data . numpy ( ) . squeeze ( ) ) for ax in axes : ax . axis ( 'off' ) ax . set_adjustable ( 'box-forced' )