1 #ifndef CONSTANT_HPP_INCLUDED_DLKJASLKJFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
2 #define CONSTANT_HPP_INCLUDED_DLKJASLKJFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
6 #include "./utils/id.hpp"
7 #include "./utils/better_assert.hpp"
8 #include "./utils/enable_shared.hpp"
20 template< Tensor Tsor >
21 struct constant : enable_id<constant<Tsor>, "Constant">
40 template<
typename T >
43 template< Tensor Tsor >
49 template<
typename T >
Definition: activation.hpp:12
constexpr bool is_constant_v
Definition: constant.hpp:47
concept Constant
Definition: constant.hpp:50
Creates a constant expression from a tensor-like object.
Definition: constant.hpp:22
Tsor data_
Definition: constant.hpp:23
void backward(auto) const
Definition: constant.hpp:27
constant(Tsor const &data)
Definition: constant.hpp:25
auto shape() const
Definition: constant.hpp:34
Tsor forward() const
Definition: constant.hpp:29
Definition: constant.hpp:41