Skip to content

Commit

Permalink
squeeze last dim in test
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Oct 26, 2024
1 parent b913742 commit 741555f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tdc/test/test_model_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def testGeneformerTokenizer(self):
input_tensor = torch.tensor(cells)
input_tensor = torch.squeeze(input_tensor)
try:
input_tensor.squeeze(2) # last dim is zero
out = model(input_tensor)
except Exception as e:
raise Exception("tensor shape is", input_tensor.shape, "exception was:", e)
Expand Down

0 comments on commit 741555f

Please sign in to comment.