From 81f6d20acaae57d8c5fd2af3273aff8ce3dc3f86 Mon Sep 17 00:00:00 2001 From: Vadim Mazalov Date: Wed, 22 Jan 2020 21:12:35 -0800 Subject: [PATCH] Cont --- Source/ActionsLib/SimpleNetworkBuilder.h | 10 +++++++--- Source/SGDLib/SimpleEvaluator.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) 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);