How to set one elements of the parameter as constant?

13 views
Skip to first unread message

Yi Isaac Yang

unread,
Sep 18, 2018, 9:12:53 AM9/18/18
to DyNet Users
Dear all,

I want to build a simple NN structure with parameter b in C++ using dynet, where b with dimension {N}. However, I need to set the first element of the parameter b as constant value 1 and to optimize all the other elements of the parameter b. How should I do?

Thank you very much and best regards,
Isaac
Reply all
Reply to author
Forward
0 new messages