Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
yjjinjie committed Jan 14, 2025
1 parent d1bd022 commit b8f5a04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tzrec/acc/trt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ def export_model_trt(
if v.size(0) < 2:
v = torch.zeros((2,) + v.size()[1:], device="cuda:0", dtype=v.dtype)
values_list_cuda.append(v)
print(v.is_contiguous(memory_format=torch.contiguous_format))
print(v.is_contiguous(memory_format=torch.channels_last))
dynamic_shapes_list.append(dict_dy)

# convert dense
Expand Down
7 changes: 4 additions & 3 deletions tzrec/tests/rank_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import json
import os
import shutil
import tempfile
import unittest

Expand All @@ -33,9 +34,9 @@ def setUp(self):
os.chmod(self.test_dir, 0o755)

def tearDown(self):
# if self.success:
# if os.path.exists(self.test_dir):
# shutil.rmtree(self.test_dir)
if self.success:
if os.path.exists(self.test_dir):
shutil.rmtree(self.test_dir)
os.environ.pop("QUANT_EMB", None)
os.environ.pop("INPUT_TILE", None)
os.environ.pop("ENABLE_TRT", None)
Expand Down

0 comments on commit b8f5a04

Please sign in to comment.