Skip to content
Snippets Groups Projects
Commit 3055399d authored by Jerome Hue's avatar Jerome Hue Committed by Olivier BICHLER
Browse files

chore: fix leaky output

parent c9cfde96
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!283[Add] Operator Leaky_MetaOperator
...@@ -65,7 +65,7 @@ std::shared_ptr<Node> Leaky(const int nbTimeSteps, const float threshold, const ...@@ -65,7 +65,7 @@ std::shared_ptr<Node> Leaky(const int nbTimeSteps, const float threshold, const
addNode->addChild(subNode, 0, 0); addNode->addChild(subNode, 0, 0);
reset->addChild(subNode, 0, 1); reset->addChild(subNode, 0, 1);
// U[t] = Input[T] + beta * U[T-1] - S[T-1] // U[t] = (Input[T] + beta * U[T-1]) - S[T-1]
subNode->addChild(potentialMem, 0, 0); subNode->addChild(potentialMem, 0, 0);
// U[T] - U_th // U[T] - U_th
...@@ -96,7 +96,7 @@ std::shared_ptr<Node> Leaky(const int nbTimeSteps, const float threshold, const ...@@ -96,7 +96,7 @@ std::shared_ptr<Node> Leaky(const int nbTimeSteps, const float threshold, const
// This way, we can plug a stack operator after or node, and get correct results // This way, we can plug a stack operator after or node, and get correct results
microGraph->setOrderedOutputs({//{potentialMem, memorizeOpDataOutputIndex}, microGraph->setOrderedOutputs({//{potentialMem, memorizeOpDataOutputIndex},
//{spikeMem, memorizeOpDataOutputIndex} //{spikeMem, memorizeOpDataOutputIndex}
{addNode, 0}, {subNode, 0},
{hsNode, 0}}); {hsNode, 0}});
auto metaOp = MetaOperator(/*type*/ "Leaky", auto metaOp = MetaOperator(/*type*/ "Leaky",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment