File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 11name  = " DynamicPPL" 
22uuid  = " 366bfd00-2699-11ea-058f-f148b4cae6d8" 
3- version  = " 0.22.0 " 
3+ version  = " 0.22.1 " 
44
55[deps ]
66AbstractMCMC  = " 80f14c24-f653-4e6a-9b94-39d6b0f70001" 
@@ -24,7 +24,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
2424AbstractMCMC  = " 2, 3.0, 4" 
2525AbstractPPL  = " 0.5.3" 
2626BangBang  = " 0.3" 
27- Bijectors  = " 0.11" 
27+ Bijectors  = " 0.11, 0.12 " 
2828ChainRulesCore  = " 0.9.7, 0.10, 1" 
2929ConstructionBase  = " 1" 
3030Distributions  = " 0.23.8, 0.24, 0.25" 
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2323[compat ]
2424AbstractMCMC  = " 2.1, 3.0, 4" 
2525AbstractPPL  = " 0.5.1, 0.6" 
26- Bijectors  = " 0.11" 
26+ Bijectors  = " 0.11, 0.12 " 
2727Distributions  = " 0.25" 
2828DistributionsAD  = " 0.6.3" 
2929Documenter  = " 0.26.1, 0.27" 
@@ -33,6 +33,6 @@ MCMCChains = "4.0.4, 5"
3333MacroTools  = " 0.5.5" 
3434Setfield  = " 0.7.1, 0.8, 1" 
3535StableRNGs  = " 1" 
36- Tracker  = " 0.2.11 " 
36+ Tracker  = " 0.2.23 " 
3737Zygote  = " 0.5.4, 0.6" 
3838julia  = " 1.6" 
Original file line number Diff line number Diff line change @@ -13,11 +13,8 @@ function test_model_ad(model, logp_manual)
1313    x =  DynamicPPL. getall (vi)
1414
1515    #  Log probabilities using the model.
16-     function  logp_model (x)
17-         new_vi =  VarInfo (vi, SampleFromPrior (), x)
18-         model (new_vi)
19-         return  getlogp (new_vi)
20-     end 
16+     ℓ =  DynamicPPL. LogDensityFunction (model, vi)
17+     logp_model =  Base. Fix1 (LogDensityProblems. logdensity, ℓ)
2118
2219    #  Check that both functions return the same values.
2320    lp =  logp_manual (x)
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments