66 template <
int In,
int Out,
typename Activation>
void addLayer() { network_.addLayer<In, Out, Activation>(); }
69 void bindParams(
unsigned int seed) { network_.bindParams(seed); }
80 InternalNetwork network_;
93 template <
int In,
int Out,
typename Activation>
void addLayer() {
97 void bindParams() { network_.bindParams(); }
98 void bindParams(
unsigned int seed) { network_.bindParams(seed); }
101 InternalNetwork &getInternal() {
return network_; }
103 const InternalNetwork &getInternal()
const {
return network_; }
106 size_t getParamsSize()
const {
return network_.params_size(); }
109 InternalNetwork network_;
void bindParams()
Definition: network_wrapper.hpp:68
size_t getParamsSize() const
Total number of parameters.
Definition: network_wrapper.hpp:77
void bindParams(unsigned int seed)
Definition: network_wrapper.hpp:69
void addLayer()
Definition: network_wrapper.hpp:66
InternalNetwork & getInternal()
Access the underlying CPU network.
Definition: network_wrapper.hpp:72
const InternalNetwork & getInternal() const
Access the underlying CPU network (const).
Definition: network_wrapper.hpp:74
Definition: network_wrapper.hpp:55
Simple feedforward network with contiguous parameter storage.
Definition: network.hpp:21
RAII-managed cuBLAS handle.
Definition: cublas_handle.cuh:22
Feed-forward dense network with GPU-backed parameters and gradients.
Definition: network.cuh:16
Layer interfaces and dense layer implementation for CPU.
ActivationType
Supported activation functions.
Definition: kernels.cuh:53
Feedforward network composed of dense layers.
Map CPU activation tags to CUDA activation enums.
Definition: network_wrapper.hpp:28
Backend tag for CPU implementations.
Definition: network_wrapper.hpp:20
Backend tag for CUDA implementations.
Definition: network_wrapper.hpp:22
Linear activation.
Definition: pinn_network.hpp:29
Tanh activation.
Definition: pinn_network.hpp:24