MLask 1.0.0
A custom c++ deep learning library
Loading...
Searching...
No Matches
ErrorFunction.hpp
Go to the documentation of this file.
1#pragma once
2#include "types.hpp"
3#include <concepts>
4#include <utility>
5
6namespace mlask{
7
11template<typename err>
12concept ErrorFunction = requires(err e, float_t result, float_t expected){
13 { std::as_const(e)(result, expected) } -> std::same_as<float_t>;
14};
15
16}
Concept representing an error function that contains a functor inside it @detials a class that needs ...
Definition ErrorFunction.hpp:12
Definition LeakyRelu.hpp:4
float float_t
Definition types.hpp:12