https://mooseframework.inl.gov
DRLRewardReporter.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #ifdef LIBTORCH_ENABLED
11 
12 #pragma once
13 
15 #include "GeneralReporter.h"
17 
20 {
21 public:
24  virtual void initialize() override {}
25  virtual void finalize() override {}
26  virtual void execute() override;
27 
28 protected:
33 };
34 
35 #endif
Real & _reward
The reward values which will be saved.
virtual void initialize() override
DRLRewardReporter(const InputParameters &parameters)
virtual void finalize() override
Reporter which saves the reward values from a Deep Reinforcement Learning controller trainer...
static InputParameters validParams()
LibtorchDRLControlTrainer & _trainer
The DRL trainer which computes the reward values.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Interface for objects that need to use samplers.
const InputParameters & parameters() const
This trainer is responsible for training neural networks that efficiently control different processes...
virtual void execute() override