• P
    Cherry pick 26767 (#27102) · fc8bc1ba
    pangyoki 提交于
    * fix dtype not matching bug in log_prob and probs method of Distribution class (#26767)
    
    * fix _to_tensor method of Distribution class
    
    * Add unittest
    
    * let dtype be consistent with value in log_prob and probs
    
    * fix format
    
    * fix dtype problem and change unittest
    
    * fix dtype of Numpy class in unittest
    
    * add formula for entropy and kl
    
    * change formula
    
    * fix kl formula format
    
    * fix kl formula format 2
    
    * change gt to np in unittest
    
    * optimize unittest format
    
    * delete dumplicate
    
    * delete dumplicate 2
    
    * extract common function used to convert dtype value
    
    * cherry pick 27046
    fc8bc1ba
test_distribution.py 33.4 KB