一个log的小问题,控制台日志输出两次
Created by: lerry-lee
使用的是ERNIE静态图,如下,在训练/推理时,日志输出会出现2次,但两次的格式不同
2020-06-19 02:25:45,347-INFO: attention_probs_dropout_prob: 0.1
[INFO] 2020-06-19 02:25:45,347 [ ernie.py: 52]: attention_probs_dropout_prob: 0.1
2020-06-19 02:25:45,347-INFO: hidden_act: relu
[INFO] 2020-06-19 02:25:45,347 [ ernie.py: 52]: hidden_act: relu
2020-06-19 02:25:45,347-INFO: hidden_dropout_prob: 0.1
[INFO] 2020-06-19 02:25:45,347 [ ernie.py: 52]: hidden_dropout_prob: 0.1
2020-06-19 02:25:45,347-INFO: hidden_size: 768
[INFO] 2020-06-19 02:25:45,347 [ ernie.py: 52]: hidden_size: 768
2020-06-19 02:25:45,347-INFO: initializer_range: 0.02
[INFO] 2020-06-19 02:25:45,347 [ ernie.py: 52]: initializer_range: 0.02
2020-06-19 02:25:45,348-INFO: max_position_embeddings: 513
[INFO] 2020-06-19 02:25:45,348 [ ernie.py: 52]: max_position_embeddings: 513
2020-06-19 02:25:45,348-INFO: num_attention_heads: 12
[INFO] 2020-06-19 02:25:45,348 [ ernie.py: 52]: num_attention_heads: 12
2020-06-19 02:25:45,348-INFO: num_hidden_layers: 12
[INFO] 2020-06-19 02:25:45,348 [ ernie.py: 52]: num_hidden_layers: 12
2020-06-19 02:25:45,348-INFO: type_vocab_size: 2
[INFO] 2020-06-19 02:25:45,348 [ ernie.py: 52]: type_vocab_size: 2
2020-06-19 02:25:45,348-INFO: vocab_size: 18000
[INFO] 2020-06-19 02:25:45,348 [ ernie.py: 52]: vocab_size: 18000
我检查了log的用法,似乎没有问题,那么请问这是什么原因呢?