diff --git a/Source/CNTKv2LibraryDll/PrimitiveFunction.cpp b/Source/CNTKv2LibraryDll/PrimitiveFunction.cpp index d091b78d9..9431475a0 100644 --- a/Source/CNTKv2LibraryDll/PrimitiveFunction.cpp +++ b/Source/CNTKv2LibraryDll/PrimitiveFunction.cpp @@ -559,7 +559,7 @@ namespace CNTK } case PrimitiveOpType::ReduceElements: { - assert(inputs.size() == 1); + assert(m_inputs.size() == 1); auto reductionAxis = NormalizeStaticAxis(m_attributes[PrimitiveFunction::AttributeNameAxis].Value(), m_inputs[0].Shape()); if (reductionAxis == Axis::AllStaticAxes() || reductionAxis == Axis::AllAxes()) outputShape = {};