ckpt_file = os.path.join(self.args.bert_dir, 'model.ckpt-6123')

# 获取图的reader
reader = self.tf_instance.train.NewCheckpointReader(ckpt_file)
# 根据节点名称获取节点
output_weights = reader.get_tensor('output_weights')
output_bias = reader.get_tensor('output_bias')

 

相关文章:

  • 2021-05-30
  • 2021-05-25
  • 2022-03-10
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-18
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
相关资源
相似解决方案