Skip to content

Commit

Permalink
bad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Oct 27, 2024
1 parent 744912a commit 9c2f7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tdc/test/test_model_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def testGeneformerTokenizer(self):
# except Exception as e:
# raise Exception("tensor shape is", input_tensor.shape, "exception was: {}".format(e), "input_tensor_squeezed is\n", input_tensor, "\n\ninput_tensor normal is: {}".format(input_tensor))
assert out, "FAILURE: Geneformer output is false-like. Value = {}".format(out)
assert len(out[0]) == input_tensor.shape[1], "FAILURE: Geneformer output and input tensor input don't have the same length. {} vs {}".format(len(out[0]), input_tensor.shape[1])
assert len(out[0][0]) == input_tensor.shape[2], "FAILURE: Geneformer output and tokenized cells don't have the same length. {} vs {}".format(len(out[0][0]), input_tensor.shape[2])
print(out)
assert len(out) == 3, "length not matching ctr+1: {} vs {}. output was \n {}".format(len(out), ctr + 1, out)

def tearDown(self):
try:
Expand Down

0 comments on commit 9c2f7d9

Please sign in to comment.