From 67b8b448e662b964aa4db2e0b29a32735d8808ea Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 31 Oct 2023 16:32:30 +0100 Subject: [PATCH] WIP --- test/model_ffnn.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/model_ffnn.cpp diff --git a/test/model_ffnn.cpp b/test/model_ffnn.cpp new file mode 100644 index 000000000..b09c6a113 --- /dev/null +++ b/test/model_ffnn.cpp @@ -0,0 +1,27 @@ +// Copyright 2020, 2021, 2022, 2023 Francesco Biscani (bluescarni@gmail.com), Dario Izzo (dario.izzo@gmail.com) +// +// This file is part of the heyoka library. +// +// This Source Code Form is subject to the terms of the Mozilla +// Public License v. 2.0. If a copy of the MPL was not distributed +// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#include +#include + +#include +#include +#include +#include + +#include "catch.hpp" + +using namespace heyoka; + +TEST_CASE("impl") +{ + auto [x] = make_vars("x"); + auto my_net = model::ffnn_impl({x}, 2, {2, 2}, {heyoka::tanh, heyoka::tanh, [](auto ret) { return ret; }}, + {1_dbl, 2_dbl, 3_dbl, 4_dbl, 5_dbl, 6_dbl, 7_dbl, 8_dbl, 9_dbl, 0_dbl, 1_dbl, 2_dbl, + 3_dbl, 4_dbl, 5_dbl, 6_dbl}); +} \ No newline at end of file