提交 39d03fdc 编写于 作者: S suweiyue

fix erniesage graph_wrapper bug

上级 c2c94565
......@@ -39,10 +39,10 @@
```sh
# 分布式GPU模式或单机模式ERNIESage
sh local_run.sh config/enriesage_v1_gpu.yaml
sh local_run.sh config/erniesage_v2_gpu.yaml
# 分布式CPU模式训练ERNIESage
sh local_run.sh config/enriesage_v1_cpu.yaml
sh local_run.sh config/erniesage_v2_cpu.yaml
```
## Hyperparamters
......
......@@ -57,7 +57,6 @@ collective_local_train(){
}
eval $(parse_yaml $config)
unalias python
python3 ./preprocessing/dump_graph.py -i $input_data -o $graph_path --encoding $encoding \
-l $max_seqlen --vocab_file $ernie_vocab_file
......
......@@ -40,7 +40,7 @@ class BaseGraphWrapperBuilder(object):
# all graph have same node_feat_info
graph_wrappers.append(
pgl.graph_wrapper.GraphWrapper(
"layer_%s" % i, place, node_feat=self.node_feature_info, edge_feat=self.edge_feature_info))
"layer_%s" % i, node_feat=self.node_feature_info, edge_feat=self.edge_feature_info))
return graph_wrappers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册