![]() |
libdl
0.0.1
Simple yet powerful deep learning
|
Applies a learnable linear transformation with optional bias. More...
#include <linear.hpp>


Public Member Functions | |
| Linear (size_t inFeatures, size_t outFeatures, const Device &device, bool bias=true) noexcept | |
| Linear (size_t inFeatures, size_t outFeatures, bool bias=true) noexcept | |
| virtual TensorPtr | forward (TensorPtr input) noexcept override |
| TensorPtr & | weights () noexcept |
| const TensorPtr & | weights () const noexcept |
| TensorPtr & | bias () noexcept |
| const TensorPtr & | bias () const noexcept |
| dl::TensorPtr | operator() (TensorPtr input) noexcept |
Applies a learnable linear transformation with optional bias.
Given a vector \(x\) computes \(xW^\top + b\).
Definition at line 12 of file linear.hpp.
|
inlinenoexcept |
Definition at line 27 of file linear.hpp.
|
inlinenoexcept |
Definition at line 26 of file linear.hpp.
|
inlinenoexcept |
Definition at line 29 of file linear.hpp.
|
inlinenoexcept |
Definition at line 25 of file linear.hpp.
|
inlinenoexcept |
Definition at line 24 of file linear.hpp.