Skip to content

Commit c741f01

Browse files
Remove unnecessary teacher eval call (#139)
1 parent e8455fa commit c741f01

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

rsl_rl/modules/student_teacher.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def __init__(
6464

6565
# Teacher
6666
self.teacher = MLP(num_teacher_obs, num_actions, teacher_hidden_dims, activation)
67-
self.teacher.eval()
6867
print(f"Teacher MLP: {self.teacher}")
6968

7069
# Teacher observation normalization

rsl_rl/runners/distillation_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def __init__(self, env: VecEnv, train_cfg: dict, log_dir: str | None = None, dev
5858
def learn(self, num_learning_iterations: int, init_at_random_ep_len: bool = False) -> None:
5959
# Initialize writer
6060
self._prepare_logging_writer()
61+
6162
# Check if teacher is loaded
6263
if not self.alg.policy.loaded_teacher:
6364
raise ValueError("Teacher model parameters not loaded. Please load a teacher model to distill.")

0 commit comments

Comments
 (0)