Skip to content

Commit

Permalink
Create an experimental directory for which we don't apply the formatt…
Browse files Browse the repository at this point in the history
…ing rules.
  • Loading branch information
ludgerpaehler committed Oct 27, 2024
1 parent 94a22cf commit c690987
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def evaluate_objective(self) -> ArrayLike:
pass

if __name__ == '__main__':
# torch.set_default_tensor_type('torch.cuda.FloatTensor')
from tqdm import tqdm
import torch

Expand All @@ -154,7 +153,6 @@ def evaluate_objective(self) -> ArrayLike:
"max_steps": 100,
}

# ks_init = torch.load('/net/beegfs-hpc/work/lagemannk/container/hydrogym_dev2/home/firedrake/hydrogym_rllib_multiEnv/hydrogym/hydrogym/torch_env/ks_init.tensor')
env = OneDimEnv(config)

action_space = env.action_space
Expand Down Expand Up @@ -186,9 +184,5 @@ def evaluate_objective(self) -> ArrayLike:
plt.savefig('/net/beegfs-hpc/work/lagemannk/container/workspace_christian_ext/logs/result.png', bbox_inches='tight')
plt.close()

env.reset()




env.reset()

0 comments on commit c690987

Please sign in to comment.