mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
Change ignore_index to 0 in Bert-Loss. (#4640)
This commit is contained in:
parent
a06cf6a3b3
commit
73ad92e773
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ GraphAugmenter::GraphDefs BertLoss::operator()(const Graph& graph, const LossFun
|
|||
"Reshape_label"));
|
||||
|
||||
std::vector<AttributeProto> attrs;
|
||||
attrs.push_back(ONNX_NAMESPACE::MakeAttribute("ignore_index", static_cast<int64_t>(-1)));
|
||||
attrs.push_back(ONNX_NAMESPACE::MakeAttribute("ignore_index", static_cast<int64_t>(0)));
|
||||
attrs.push_back(ONNX_NAMESPACE::MakeAttribute("reduction", "mean"));
|
||||
|
||||
new_nodes.emplace_back(NodeDef("SoftmaxCrossEntropyLoss",
|
||||
|
|
|
|||
Loading…
Reference in a new issue