Skip to content

Commit

Permalink
remove create .dataset after geneformer hugingface replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Oct 26, 2024
1 parent 5f14c49 commit 01e6eb5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tdc/test/test_model_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ def testGeneformerTokenizer(self):
import torch
geneformer = tdc_hf_interface("Geneformer")
model = geneformer.load()
tokenized_data = tokenizer.create_dataset(cells, metadata)
# input_tensor = torch.tensor(tokenized_data)
# input_tensor = torch.squeeze(input_tensor)
# tokenized_data = tokenizer.create_dataset(cells, metadata)
input_tensor = torch.tensor(cells)
input_tensor = torch.squeeze(input_tensor)
try:
out = model(tokenized_data)
out = model(input_tensor)
except Exception as e:
# raise Exception("tensor shape is", input_tensor.shape, "exception was:", e)
raise Exception(e)
raise Exception("tensor shape is", input_tensor.shape, "exception was:", e)
# raise Exception(e)
# input_tensor = torch.tensor(cells)
# input_tensor_squeezed = torch.squeeze(input_tensor)
# x = input_tensor_squeezed.shape[0]
Expand Down

0 comments on commit 01e6eb5

Please sign in to comment.