Skip to content

Commit

Permalink
Train file runs without errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasgrampurohit committed Jun 23, 2023
1 parent 4dd0eb9 commit fe895e5
Show file tree
Hide file tree
Showing 6 changed files with 428 additions and 28 deletions.
42 changes: 21 additions & 21 deletions acme/acme/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
jax==0.3.6
gym
dm-haiku
atari-py
numpy==1.22.4
rlax
tensorflow-estimator==2.8.0
absl-py
jaxlib==0.3.5
bsuite
tensorflow_probability==0.15.0
gym[atari]
dm-env
trfl
jax==0.3.6
optax
flax
typing-extensions
bsuite
dm-reverb==0.7.2
rlds
chex
keras==2.8.0
dm-sonnet
tensorflow==2.8.0
pillow
dm-control==0.0.364896371
atari-py
gym
pillow
gym[atari]
dm-haiku
dm-sonnet
dm-launchpad==0.5.2
pygame==2.1.0
jaxlib==0.3.5
typing-extensions
tensorflow-datasets==4.5.2
dm-launchpad==0.5.2
absl-py
chex
rlax
tensorflow==2.8.0
tensorflow-estimator==2.8.0
dm-tree
flax
keras==2.8.0
numpy==1.22.4
trfl
dm-reverb==0.7.2
Binary file modified arch_gym/envs/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
12 changes: 6 additions & 6 deletions arch_gym/envs/custom_gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class ExampleEnv(Env):
def __init__(self):
super(ExampleEnv, self).__init__()

self.energy = 0.0;
self.area = 0.0;
self.latency = 0.0;
self.energy = 0.0
self.area = 0.0
self.latency = 0.0

self.ideal = {'num_cores':4, 'freq':2.0, 'mem_type':'SRAM', 'mem_size':32}

Expand Down Expand Up @@ -42,9 +42,9 @@ def step(self, action):
return observation, reward, done, {}

def reset(self):
self.energy = 0.0;
self.area = 0.0;
self.latency = 0.0;
self.energy = 0.0
self.area = 0.0
self.latency = 0.0
return np.array([self.energy, self.area, self.latency], dtype=np.float32)

def render(self, mode='human'):
Expand Down
2 changes: 1 addition & 1 deletion arch_gym/envs/customenv_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Wraps an OpenAI Gym environment to be used as a dm_env environment."""

from typing import Any, Dict, List, Optional

import acme
from acme import specs
from acme import types
from acme import wrappers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -798,3 +798,203 @@
-27.065975
""
-18.073322
""
-35.182365
""
-26.040257
""
-10.075645
""
-26.492504
""
-29.135979
""
-21.480282
""
-14.252707
""
-13.0846195
""
-40.151657
""
-20.440308
""
-27.134571
""
-15.33428
""
-13.009749
""
-18.27842
""
-20.210276
""
-26.175743
""
-38.2924
""
-38.160294
""
-31.030537
""
-12.02388
""
-27.118036
""
-12.171343
""
-29.114782
""
-23.202291
""
-29.291946
""
-28.031576
""
-31.403015
""
-27.043924
""
-37.173367
""
-25.301727
""
-31.000439
""
-23.03843
""
-24.186733
""
-5.100069
""
-4.1769805
""
-36.07997
""
-31.064535
""
-18.29602
""
-8.001272
""
-38.028236
""
-21.4882
""
-41.260082
""
-32.13735
""
-24.050396
""
-14.356946
""
-15.908338
""
-25.170448
""
-31.126595
""
-26.124956
""
-14.148241
""
-40.152824
""
-16.754744
""
-11.630089
""
-21.048923
""
-23.11937
""
-29.071375
""
-41.14492
""
-41.26009
""
-15.297247
""
-15.297331
""
-12.845853
""
-20.027363
""
-12.172613
""
-38.286316
""
-27.016464
""
-28.114689
""
-25.039745
""
-19.488203
""
-24.00089
""
-18.342125
""
-19.488602
""
-12.903004
""
-20.109213
""
-18.067745
""
-27.036766
""
-17.015455
""
-19.235909
""
-12.045872
""
-27.037733
""
-15.297857
""
-25.298977
""
-14.154985
""
-6.246656
""
-11.446793
""
-30.000221
""
-39.18446
""
-37.022896
""
-27.117481
""
-14.609314
""
-27.11789
""
-17.294422
""
-4.249074
""
-40.163174
""
-30.050438
""
-33.094193
""
-34.194897
""
-19.848984
""
-33.19488
""
-37.18328
""
-13.605553
Loading

0 comments on commit fe895e5

Please sign in to comment.