Skip to content

Commit

Permalink
[Minor] Fix prints (pytorch#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Jun 12, 2023
1 parent 7642bd1 commit c925a09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def pytest_sessionfinish(maxprint=50):
keys = list(CALL_TIMES.keys())
if len(keys) > 1:
maxchar = max(*[len(key) for key in keys])
else:
elif len(keys) == 1:
maxchar = len(keys[0])
else:
return
for i, (key, item) in enumerate(
sorted(CALL_TIMES.items(), key=lambda x: x[1], reverse=True)
):
Expand Down
5 changes: 5 additions & 0 deletions torchrl/_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import collections

import functools
Expand Down

0 comments on commit c925a09

Please sign in to comment.