Skip to content

Commit 03a8c41

Browse files
committed
default keep dim is true
1 parent 1fe0bf1 commit 03a8c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/CNTKv2LibraryDll/proto/onnx/CNTKToONNX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7077,7 +7077,7 @@ void CNTKToONNXHelper::SetReduceElementsAttributes(const FunctionPtr src, Node *
70777077
reductionAxes.push_back((Axis)(src->Attributes()[L"axis"].Value<Axis>()));
70787078

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

0 commit comments

Comments
 (0)