refactor: remove input.hpp
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ int main(void) {
|
||||
};
|
||||
|
||||
// network net;
|
||||
using network_type = cenet::network<cenet::dense_input<2>,
|
||||
using network_type = cenet::network<cenet::mat<1, 2, float>,
|
||||
cenet::dense_layer<2>,
|
||||
cenet::sigmoid_layer,
|
||||
cenet::dense_layer<1>,
|
||||
@@ -50,7 +50,7 @@ int main(void) {
|
||||
xs[0][0] = static_cast<float>(i & 1);
|
||||
xs[0][1] = static_cast<float>(i > 1);
|
||||
|
||||
float yHat = xorNet.feed(xs).get()[0][0];
|
||||
float yHat = xorNet.feed(xs)[0][0];
|
||||
float error = yHat - s_trainData[i];
|
||||
|
||||
if ((gen % 1000) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user