mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
Implement getting layer, weights and biases
This commit is contained in:
@@ -29,6 +29,8 @@ class Model {
|
||||
float* predict(const float* input);
|
||||
|
||||
void addLayer(const std::string& name, Layers::SequentialLayer* layer);
|
||||
Layers::SequentialLayer* getLayer(const std::string& name);
|
||||
|
||||
void loadWeights(const std::string& path);
|
||||
|
||||
private:
|
||||
@@ -41,7 +43,7 @@ class Model {
|
||||
int outputSize;
|
||||
|
||||
std::vector<Layers::SequentialLayer*> layers;
|
||||
std::unordered_map<std::string, Layers::WeightedLayer*> layerMap;
|
||||
std::unordered_map<std::string, Layers::SequentialLayer*> layerMap;
|
||||
};
|
||||
|
||||
} // namespace CUDANet
|
||||
|
||||
Reference in New Issue
Block a user