(img, recon)
Function for displaying an image (as a PyTorch Tensor) and its
        reconstruction also a PyTorch Tensor
Function for displaying an image (as a PyTorch Tensor) and its
        reconstruction also a PyTorch Tensor
Function for displaying an image ( as a PyTorch Tensor ) and its reconstruction also a PyTorch Tensor
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')
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' )