Apply formating to all files. CLeanup

This commit is contained in:
IlyaShurupov 2023-10-22 17:07:28 +03:00 committed by Ilya Shurupov
parent b4ae5dde77
commit 91fb72bd49
928 changed files with 14515 additions and 21479 deletions

View file

@ -3,5 +3,5 @@
#include "Module.hpp"
namespace tp {
extern ModuleManifest gModuleDataAnalysis;
extern ModuleManifest gModuleDataAnalysis;
}

View file

@ -4,17 +4,24 @@
#include "DataAnalysisCommon.hpp"
namespace tp {
class FullyConnectedNN {
public:
struct Layer {
halnf mBias;
Buffer<halnf> mWeights;
};
class FullyConnectedNN {
struct Layer {
struct Neuron {
halnf mBias = 0;
Buffer<halnf> mWeights;
halnf mActivationValue = 0;
};
public:
FullyConnectedNN() = default;
Buffer<Neuron> mNeurons;
};
private:
Buffer<Layer> mLayers;
};
public:
FullyConnectedNN() = default;
void initializeRandom(Buffer<halni> description);
void evaluate(const Buffer<halnf>& input, Buffer<halnf>& output);
private:
Buffer<Layer> mLayers;
};
};