• P
    fix dtype not matching bug in log_prob and probs method of Distribution class (#26767) · a0c98e67
    pangyoki 提交于
    * 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
    a0c98e67
test_distribution.py 33.4 KB