diff --git a/Source/ActionsLib/SimpleNetworkBuilder.h b/Source/ActionsLib/SimpleNetworkBuilder.h index ff823597f..b3fc39f72 100644 --- a/Source/ActionsLib/SimpleNetworkBuilder.h +++ b/Source/ActionsLib/SimpleNetworkBuilder.h @@ -159,9 +159,13 @@ public: m_constInputGateValue = config("constInputGateValue", "false"); m_constOutputGateValue = config("constOutputGateValue", "false"); - m_forgetGateInitVal = config("forgetGateInitVal", "-1"); - m_inputGateInitVal = config("inputGateInitVal", "-1"); - m_outputGateInitVal = config("outputGateInitVal", "-1"); + ElemType forgetGateInitVal = config("forgetGateInitVal", "-1"); + ElemType inputGateInitVal = config("inputGateInitVal", "-1"); + ElemType outputGateInitVal = config("outputGateInitVal", "-1"); + + m_forgetGateInitVal = forgetGateInitVal; + m_inputGateInitVal = inputGateInitVal; + m_outputGateInitVal = outputGateInitVal; m_sparse_input = config("sparseinput", "false"); diff --git a/Source/SGDLib/SimpleEvaluator.h b/Source/SGDLib/SimpleEvaluator.h index 2941c26d4..83f0e741d 100644 --- a/Source/SGDLib/SimpleEvaluator.h +++ b/Source/SGDLib/SimpleEvaluator.h @@ -56,6 +56,7 @@ public: // returns evaluation node values per sample determined by evalNodeNames (which can include both training and eval criterion nodes) vector Evaluate(IDataReader* dataReader, const vector& evalNodeNames, const size_t mbSize, const size_t testSize = requestDataSize) { + fprintf(stderr, "========================= Entered Evaluate in SimpleEvaluator.h \n"); ScopedNetworkOperationMode modeGuard(m_net, NetworkOperationMode::inferring); let evalNodes = m_net->GetEvalNodesWithName(evalNodeNames);