Switch return_dict to True by default. (#8530)
* Use the CI to identify failing tests * Remove from all examples and tests * More default switch * Fixes * More test fixes * More fixes * Last fixes hopefully * Use the CI to identify failing tests * Remove from all examples and tests * More default switch * Fixes * More test fixes * More fixes * Last fixes hopefully * Run on the real suite * Fix slow tests
This commit is contained in:
@@ -594,7 +594,9 @@ class TFLongformerModelIntegrationTest(unittest.TestCase):
|
||||
# 'Hello world! ' repeated 1000 times
|
||||
input_ids = tf.convert_to_tensor([[0] + [20920, 232, 328, 1437] * 1000 + [2]], dtype=tf.dtypes.int32)
|
||||
|
||||
loss, prediction_scores = model(input_ids, labels=input_ids)
|
||||
output = model(input_ids, labels=input_ids)
|
||||
loss = output.loss
|
||||
prediction_scores = output.logits
|
||||
|
||||
expected_loss = tf.constant(0.0073798)
|
||||
expected_prediction_scores_sum = tf.constant(-610476600.0)
|
||||
|
||||
Reference in New Issue
Block a user