Skip to content

Commit

Permalink
This commits applies CR feedback: Throw exception when NodeGroup cann…
Browse files Browse the repository at this point in the history
…ot be converted
  • Loading branch information
gaizkan committed May 2, 2016
1 parent 66844e0 commit 489f4a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Extensibility/EvalWrapper/EvalWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,9 @@ public ref class IEvaluateModelManaged : IDisposable
case Microsoft::MSR::CNTK::NodeGroup::nodeOutput:
return Microsoft::MSR::CNTK::NodeGroup::nodeOutput;
case Microsoft::MSR::CNTK::NodeGroup::nodeSpecified:
default:
return Microsoft::MSR::CNTK::NodeGroup::nodeSpecified;
default:
throw gcnew CNTKRuntimeException(String::Format("Cannot convert native NodeGroup with value: {0} to corresponding managed NodeGroup.",(int)nodeGroup), "");
}
}
};
Expand Down

0 comments on commit 489f4a5

Please sign in to comment.