Issue with Scale Function

Aug 26, 2015 at 12:23 PM
I am having trouble getting scale function to work. My code and the error message is given below. Please advice.

R1=Parameter(2048, init=fixedvalue, value=0)
R1S=Sigmoid(R1)
R1A=Scale(2.0,R1S)

cntk: MachineLearning/CNTK/SynchronousExecutionEngine.h:729: std::vector<void*> Microsoft::MSR::CNTK::SynchronousNodeEvaluator<ElemType>::EvaluateParameters(Microsoft::MSR::CNTK::NDLNode<ElemType>*, const wstring&, int, int, Microsoft::MSR::CNTK::NDLPass) [with ElemType = float; std::wstring = std::basic_string<wchar_t>]: Assertion `np != nullptr' failed.
Coordinator
Aug 26, 2015 at 5:23 PM
Edited Aug 26, 2015 at 5:24 PM
Based on the CNTK book, Scale takes two nodes, so you need to do is:

ScaleFac=Constant(2.0)
R1A=Scale(ScaleFac, R1S)