Skip to content

Commit

Permalink
default keep dim is true
Browse files Browse the repository at this point in the history
  • Loading branch information
liqunfu committed Jun 19, 2019
1 parent 1fe0bf1 commit 03a8c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CNTKv2LibraryDll/proto/onnx/CNTKToONNX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7077,7 +7077,7 @@ void CNTKToONNXHelper::SetReduceElementsAttributes(const FunctionPtr src, Node *
reductionAxes.push_back((Axis)(src->Attributes()[L"axis"].Value<Axis>()));

//
int64_t keepReducedDimensions = 0;
int64_t keepReducedDimensions = 1;
if (src->Attributes().Contains(L"reductionKeepDimensions"))
keepReducedDimensions = (int64_t)((bool)src->Attributes()[L"reductionKeepDimensions"].Value<bool>() ? 1 : 0);

Expand Down

0 comments on commit 03a8c41

Please sign in to comment.