if you are trying to use TFHub + BERT, I’d suggest you follow this:

  
      

      TensorFlow
  

  
    

Classify text with BERT  |  Text  |  TensorFlow 1



  

  
    
    
  

  


hub.Module is for the old version, it’s better to use hub.load or hub.KerasLayer now