refactor: remove input.hpp

This commit is contained in:
2026-10-25 19:21:17 +01:00
parent 471c9c8997
commit fa0418914a
8 changed files with 81 additions and 146 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ private:
return std::get<I>(m_layers);
}
public:
using input_type = Input::inner;
using input_type = Input;
using output_type = output_layer_type::output_type;
public:
const output_type& get_output() const { return get_layer<sizeof...(Layers) - 1>().output; }
@@ -108,7 +108,7 @@ public:
public:
void backprop(const input_type& input, const output_type& expected, learning_state& state) {
feed(input);
auto outputErr = get_output().get() - expected;
auto outputErr = get_output() - expected;
get_layer<0>().backward(input,
std::get<0>(state.m_layers),
backprop_chain<sizeof...(Layers) - 1>(state, outputErr));