遗漏的部分

This commit is contained in:
qing committed 2026-08-02 21:21:03 +08:00
1 parent 84fb370da8
commit 0493383ee8
63 files changed
+28237 -4

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#pragma once
#include "nn/ILayer.hpp"
#include "nn/ILearnable.hpp"
class ILayerFullyConnectted: public ILayer, public ILearnable {
public:
/* 正向传播,返回神经网络输出 */
virtual std::vector<float> forward(const std::vector<float>& inputs) = 0;
/* 反向传播,返回上一层的误差,方便堆叠 */
virtual std::vector<float> backward(const std::vector<float>& error) = 0;
};