Solved by Mazhar_Shaikh in post #2 
              
              
                Hi kabron_wade, 
The entropy is calculated using the natural logarithm. In your numpy example code, you use np.log2(). Using np.log() would give you the same result as the pytorch entropy().