This base class is meant to gather the functions and members common in every neural network based on Libtorch. More...
#include <LibtorchNeuralNetBase.h>
Public Member Functions | |
virtual | ~LibtorchNeuralNetBase () |
virtual torch::Tensor | forward (const torch::Tensor &x)=0 |
This base class is meant to gather the functions and members common in every neural network based on Libtorch.
Definition at line 24 of file LibtorchNeuralNetBase.h.
|
inlinevirtual |
Definition at line 28 of file LibtorchNeuralNetBase.h.
|
pure virtual |
Implemented in Moose::LibtorchArtificialNeuralNet, and Moose::TorchScriptModule.