Apply formating to all files. CLeanup
This commit is contained in:
parent
43e374f269
commit
744c01c5d0
928 changed files with 14515 additions and 21480 deletions
|
|
@ -3,5 +3,5 @@
|
|||
#include "Module.hpp"
|
||||
|
||||
namespace tp {
|
||||
extern ModuleManifest gModuleDataAnalysis;
|
||||
extern ModuleManifest gModuleDataAnalysis;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue