File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 2121function  DynamicPPL. Experimental. _determine_varinfo_jet (
2222    model:: DynamicPPL.Model ; only_ddpl:: Bool = true 
2323)
24-     #  Use SamplingContext to test type stability.
25-     sampling_model =  DynamicPPL. contextualize (
26-         model, DynamicPPL. SamplingContext (model. context)
27-     )
28- 
2924    #  First we try with the typed varinfo.
30-     varinfo =  DynamicPPL. typed_varinfo (sampling_model )
25+     varinfo =  DynamicPPL. typed_varinfo (model )
3126
32-     #  Let's make sure that both  evaluation and sampling  doesn't result in type errors.
27+     #  Let's make sure that evaluation doesn't result in type errors.
3328    issuccess, result =  DynamicPPL. Experimental. is_suitable_varinfo (
34-         sampling_model , varinfo; only_ddpl
29+         model , varinfo; only_ddpl
3530    )
3631
3732    if  ! issuccess
3833        #  Useful information for debugging.
39-         @debug  " Evaluaton  with typed varinfo failed with the following issues:" 
34+         @debug  " Evaluation  with typed varinfo failed with the following issues:" 
4035        @debug  result
4136    end 
4237
@@ -46,7 +41,7 @@ function DynamicPPL.Experimental._determine_varinfo_jet(
4641    else 
4742        #  Warn the user that we can't use the type stable one.
4843        @warn  " Model seems incompatible with typed varinfo. Falling back to untyped varinfo." 
49-         DynamicPPL. untyped_varinfo (sampling_model )
44+         DynamicPPL. untyped_varinfo (model )
5045    end 
5146end 
5247
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments