mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 17:54:27 +00:00
Test model weights loading
This commit is contained in:
@@ -51,12 +51,7 @@ float* Model::predict(const float* input) {
|
||||
|
||||
void Model::addLayer(const std::string& name, Layers::SequentialLayer* layer) {
|
||||
layers.push_back(layer);
|
||||
|
||||
Layers::WeightedLayer* wLayer = dynamic_cast<Layers::WeightedLayer*>(layer);
|
||||
|
||||
if (wLayer != nullptr) {
|
||||
layerMap[name] = wLayer;
|
||||
}
|
||||
layerMap[name] = layer;
|
||||
}
|
||||
|
||||
Layers::SequentialLayer* Model::getLayer(const std::string& name) {
|
||||
|
||||
Reference in New Issue
Block a user