"docs/vscode:/vscode.git/clone" did not exist on "6a17688021268fe429e78c66ea0932cb55cd03b1"
Commit e1b7e10d authored by LysandreJik's avatar LysandreJik
Browse files

Update TF BERT test

parent 8ffc01a7
...@@ -348,7 +348,7 @@ class TFBertModelIntegrationTest(unittest.TestCase): ...@@ -348,7 +348,7 @@ class TFBertModelIntegrationTest(unittest.TestCase):
input_ids = tf.constant([[0, 1, 2, 3, 4, 5]]) input_ids = tf.constant([[0, 1, 2, 3, 4, 5]])
output = model(input_ids)[0] output = model(input_ids)[0]
expected_shape = [1, 6, 10] expected_shape = [1, 6, 32000]
self.assertEqual(output.shape, expected_shape) self.assertEqual(output.shape, expected_shape)
print(output[:, :3, :3]) print(output[:, :3, :3])
...@@ -356,9 +356,9 @@ class TFBertModelIntegrationTest(unittest.TestCase): ...@@ -356,9 +356,9 @@ class TFBertModelIntegrationTest(unittest.TestCase):
expected_slice = tf.constant( expected_slice = tf.constant(
[ [
[ [
[0.03706957, 0.10124919, 0.03616843], [-0.05243197, -0.04498899, 0.05512108],
[-0.06099961, 0.02266058, 0.00601412], [-0.07444685, -0.01064632, 0.04352357],
[-0.06066202, 0.05684517, 0.02038802], [-0.05020351, 0.05530146, 0.00700043]
] ]
] ]
) )
......
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