LArDLHelper class. More...
#include <LArDLHelper.h>
Public Types | |
typedef torch::jit::script::Module | TorchModel |
typedef torch::Tensor | TorchInput |
typedef std::vector < torch::jit::IValue > | TorchInputVector |
typedef at::Tensor | TorchOutput |
Static Public Member Functions | |
static pandora::StatusCode | LoadModel (const std::string &filename, TorchModel &model) |
Loads a deep learning model. More... | |
static void | InitialiseInput (const at::IntArrayRef dimensions, TorchInput &tensor) |
Create a torch input tensor. More... | |
static void | Forward (TorchModel &model, const TorchInputVector &input, TorchOutput &output) |
Run a deep learning model. More... | |
LArDLHelper class.
Definition at line 22 of file LArDLHelper.h.
typedef torch::Tensor lar_dl_content::LArDLHelper::TorchInput |
Definition at line 26 of file LArDLHelper.h.
typedef std::vector<torch::jit::IValue> lar_dl_content::LArDLHelper::TorchInputVector |
Definition at line 27 of file LArDLHelper.h.
typedef torch::jit::script::Module lar_dl_content::LArDLHelper::TorchModel |
Definition at line 25 of file LArDLHelper.h.
typedef at::Tensor lar_dl_content::LArDLHelper::TorchOutput |
Definition at line 28 of file LArDLHelper.h.
|
static |
Run a deep learning model.
model | the model to run |
input | the input to run over |
output | the tensor to store the output in |
Definition at line 41 of file LArDLHelper.cc.
|
static |
Create a torch input tensor.
dimensions | the size of each dimension of the tensor: pass as {a, b, c, d} for example |
tensor | the tensor to be initialised |
Definition at line 34 of file LArDLHelper.cc.
|
static |
Loads a deep learning model.
filename | the filename of the model to load |
model | the TorchModel in which to store the loaded model |
Definition at line 16 of file LArDLHelper.cc.