Skip to content

Commit

Permalink
Fix type mismatch due to same variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dantp-ai committed Jan 3, 2024
1 parent 7404a76 commit 1468cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/offline/test_bcq.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ def watch():
env = gym.make(args.task)
policy.eval()
collector = Collector(policy, env)
result = collector.collect(n_episode=1, render=args.render)
print(f"Final reward: {result.returns_stat.mean}, length: {result.lens_stat.mean}")
res = collector.collect(n_episode=1, render=args.render)
print(f"Final reward: {res.returns_stat.mean}, length: {res.lens_stat.mean}")


if __name__ == "__main__":
Expand Down

0 comments on commit 1468cdf

Please sign in to comment.