Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Oct 17, 2024
1 parent 26642ca commit a9dbfb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions benchmarks/common/h2d_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class TestTo:
def test_to(
self, benchmark, consolidated, td, default_device, compile_mode, num_threads
):
tensordict_logger.info(f"td size (Gb) {td.bytes() / 1024 / 1024 / 1024 :.2f} GB")
tensordict_logger.info(
f"td size {td.bytes() / 1024 / 1024:.2f} Mb"
)
if consolidated:
td = td.consolidate()

Expand All @@ -94,7 +96,9 @@ def to(td, num_threads):
def test_to_njt(
self, benchmark, consolidated, njt_td, default_device, compile_mode, num_threads
):
tensordict_logger.info(f"njtd size (Gb) {td.bytes() / 1024 / 1024 / 1024 :.2f} GB")
tensordict_logger.info(
f"njtd size {td.bytes() / 1024 / 1024 :.2f} Mb"
)
if consolidated:
njt_td = njt_td.consolidate()

Expand Down

0 comments on commit a9dbfb3

Please sign in to comment.