11 lines
413 B
C++
11 lines
413 B
C++
#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;
|
|
};
|