Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
minor
  • Loading branch information
vmoens committed May 16, 2022
1 parent 4be4246 commit 2a34396
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions torchrl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ def decorated_fn(*args, **kwargs):
return decorated_fn

def __enter__(self):
return
self.t0 = time.time()

def __exit__(self, exc_type, exc_val, exc_tb):
return
t = time.time() - self.t0
self._REG.setdefault(self.name, [0.0, 0.0, 0])

Expand All @@ -64,7 +62,6 @@ def __exit__(self, exc_type, exc_val, exc_tb):

@staticmethod
def print():
return
keys = list(timeit._REG)
keys.sort()
for name in keys:
Expand Down

0 comments on commit 2a34396

Please sign in to comment.