1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
// Copyright 2016, Tobias Hermann.
// https://github.com/Dobiasd/frugally-deep
// Distributed under the MIT License.
// (See accompanying LICENSE file or at
// https://opensource.org/licenses/MIT)
#pragma once
#include "fdeep/layers/layer.hpp"
#include <string>
namespace fdeep {
namespace internal {
class average_layer : public layer {
public:
explicit average_layer(const std::string& name)
: layer(name)
{
}
protected:
tensors apply_impl(const tensors& input) const override
{
return { average_tensors(input) };
}
};
}
}
|