Skip to content

Commit 9a19e5b

Browse files
bumping rlt
1 parent b24b543 commit 9a19e5b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

external/rl_tools

Submodule rl_tools updated 240 files

include/my_pendulum/operations_generic.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ T angle_normalize(const DEVICE& dev, T x){
1717

1818

1919
namespace rl_tools{
20+
template<typename DEVICE, typename SPEC>
21+
void malloc(DEVICE& device, MyPendulum<SPEC>& env){}
22+
template<typename DEVICE, typename SPEC>
23+
void free(DEVICE& device, MyPendulum<SPEC>& env){}
24+
template<typename DEVICE, typename SPEC>
25+
void init(DEVICE& device, MyPendulum<SPEC>& env, typename MyPendulum<SPEC>::Parameters& parameters){}
2026
template<typename DEVICE, typename SPEC>
2127
void initial_parameters(DEVICE& device, const MyPendulum<SPEC>& env, typename MyPendulum<SPEC>::Parameters& parameters){ }
2228
template<typename DEVICE, typename SPEC, typename RNG>

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ struct LOOP_CORE_PARAMETERS: rlt::rl::algorithms::ppo::loop::core::DefaultParame
2828
};
2929

3030
static constexpr TI N_ENVIRONMENTS = 4;
31-
static constexpr TI ON_POLICY_RUNNER_STEPS_PER_ENV = 1024;
32-
static constexpr TI BATCH_SIZE = 256;
31+
static constexpr TI ON_POLICY_RUNNER_STEPS_PER_ENV = 256;
32+
static constexpr TI BATCH_SIZE = 64;
3333
static constexpr TI TOTAL_STEP_LIMIT = 300000;
3434
static constexpr TI STEP_LIMIT = TOTAL_STEP_LIMIT/(ON_POLICY_RUNNER_STEPS_PER_ENV * N_ENVIRONMENTS) + 1;
3535
static constexpr TI EPISODE_STEP_LIMIT = 200;

0 commit comments

Comments
 (0)