Skip to content

Commit

Permalink
完成框架调用
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Jul 23, 2023
1 parent 07e82bb commit 3032eef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Bp/WherewurjeahodairhohemConanaqe.Wpf/Core/Neuron.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,18 @@ public Neuron(NeuronId id)
/// </summary>
public virtual void Run()
{
using var input = InputManager.GetInput();
var inputList = input.AsSpan();

double sum = 0;
foreach (var inputArgument in inputList)
{
sum += inputArgument.Value;
}

var output = sum / inputList.Length;

OutputArgument = new OutputArgument(output);
}
}

Expand Down

0 comments on commit 3032eef

Please sign in to comment.