Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Jan 21, 2025
1 parent ba7602a commit 90c98aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tdc/test/test_model_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def testGeneformerPerturb(self):
cell = np.append(cell, 0)
batch[idx] = cell
input_tensor = torch.tensor(batch)
assert input_tensor.shape[0] == 512, "unexpected batch size"
assert input_tensor.shape[1] == mdim, f"unexpected gene length {mdim}"
attention_mask = torch.tensor([[t != 0 for t in cell] for cell in batch
])
outputs = model(input_tensor,
Expand Down

0 comments on commit 90c98aa

Please sign in to comment.