MLask
1.0.0
A custom c++ deep learning library
Loading...
Searching...
No Matches
include
ErrorFunction.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "
types.hpp
"
3
#include <concepts>
4
#include <utility>
5
6
namespace
mlask
{
7
11
template
<
typename
err>
12
concept
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
}
mlask::ErrorFunction
Concept representing an error function that contains a functor inside it @detials a class that needs ...
Definition
ErrorFunction.hpp:12
mlask
Definition
LeakyRelu.hpp:4
mlask::float_t
float float_t
Definition
types.hpp:12
types.hpp
Generated by
1.9.8