"examples/pytorch/vscode:/vscode.git/clone" did not exist on "7784f0668d41ebde6c6d92785cd47f02fd983db1"
Commit 10643806 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 326722720
parent 6e3b5a08
......@@ -248,6 +248,9 @@ class SentencePredictionTaskTest(tf.test.TestCase, parameterized.TestCase):
predictions = sentence_prediction.predict(task, test_data_config, model)
self.assertLen(predictions, num_examples)
for prediction in predictions:
self.assertEqual(prediction.dtype,
tf.int64 if num_classes > 1 else tf.float32)
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment