refactor: remove input.hpp
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user