File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818from  __future__ import  division 
1919from  __future__ import  print_function 
2020
21- import  inspect 
2221from  tensor2tensor .utils  import  expert_utils  as  eu 
2322import  tensorflow  as  tf 
23+ from  tensorflow .python .util  import  tf_inspect  as  inspect 
2424
2525
2626def  data_parallelism_from_flags (daisy_chain_variables = True , all_workers = False ):
Original file line number Diff line number Diff line change 1818from  __future__ import  division 
1919from  __future__ import  print_function 
2020
21- import  inspect 
2221import  numpy  as  np 
2322import  six 
2423
2928import  tensorflow  as  tf 
3029
3130from  tensorflow .contrib .eager .python  import  tfe 
31+ from  tensorflow .python .util  import  tf_inspect  as  inspect 
3232
3333
3434class  Metrics (object ):
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ class MyModel(T2TModel):
4444from  __future__ import  division 
4545from  __future__ import  print_function 
4646
47- import  inspect 
4847from  tensor2tensor .utils  import  misc_utils 
4948import  tensorflow  as  tf 
49+ from  tensorflow .python .util  import  tf_inspect  as  inspect 
5050
5151_ATTACKS  =  {}
5252_ATTACK_PARAMS  =  {}
Original file line number Diff line number Diff line change 2222import  contextlib 
2323import  copy 
2424import  functools 
25- import  inspect 
2625import  math 
2726import  os 
2827import  time 
4847from  tensorflow .python .layers  import  base 
4948from  tensorflow .python .ops  import  inplace_ops 
5049from  tensorflow .python .ops  import  variable_scope 
50+ from  tensorflow .python .util  import  tf_inspect  as  inspect 
5151
5252_no_problem_err_str  =  (
5353    "The default implementation of %s requires that the " 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments