Generate: Update VisionEncoderDecoder test value (#27850)

update test result, due to bug fix in decoder-only beam search
This commit is contained in:
Joao Gante
2023-12-05 11:26:59 +00:00
committed by GitHub
parent fdb85be40f
commit b7e6d120c1

View File

@@ -800,7 +800,7 @@ class ViT2GPT2ModelIntegrationTest(unittest.TestCase):
preds, scores = generate_step(pixel_values)
EXPECTED_SCORES = np.array([-0.59562886])
EXPECTED_SCORES = np.array([-0.64145195])
max_diff = np.amax(np.abs(scores - EXPECTED_SCORES))
self.assertLessEqual(max_diff, 1e-4)