mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
Initial model implementation
This commit is contained in:
34
include/model/model.hpp
Normal file
34
include/model/model.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef CUDANET_MODEL_H
|
||||
#define CUDANET_MODEL_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include "layer.cuh"
|
||||
|
||||
namespace CUDANet {
|
||||
|
||||
class Model {
|
||||
public:
|
||||
Model(const int inputSize, const int inputChannels);
|
||||
~Model();
|
||||
|
||||
float* predict(const float* input);
|
||||
|
||||
void addLayer(const std::string& name, Layers::SequentialLayer* layer);
|
||||
|
||||
private:
|
||||
|
||||
int inputSize;
|
||||
int inputChannels;
|
||||
|
||||
int outputSize;
|
||||
|
||||
std::vector<Layers::SequentialLayer*> layers;
|
||||
std::map<std::string, Layers::WeightedLayer*> layerMap;
|
||||
|
||||
};
|
||||
|
||||
} // namespace CUDANet
|
||||
|
||||
#endif // CUDANET_MODEL_H
|
||||
Reference in New Issue
Block a user