Fix typos in strings and comments (#37799)
This commit is contained in:
@@ -34,7 +34,7 @@ class MT5IntegrationTest(unittest.TestCase):
|
||||
@slow
|
||||
def test_small_integration_test(self):
|
||||
"""
|
||||
For comparision run:
|
||||
For comparison run:
|
||||
>>> import t5 # pip install t5==0.7.1
|
||||
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
|
||||
|
||||
|
||||
@@ -853,7 +853,7 @@ class MT5ModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin,
|
||||
config_and_inputs = self.model_tester.prepare_config_and_inputs()
|
||||
self.model_tester.create_and_check_encoder_decoder_shared_weights(*config_and_inputs)
|
||||
|
||||
@unittest.skipIf(torch_device == "cpu", "Cant do half precision")
|
||||
@unittest.skipIf(torch_device == "cpu", "Can't do half precision")
|
||||
def test_model_fp16_forward(self):
|
||||
config_and_inputs = self.model_tester.prepare_config_and_inputs()
|
||||
self.model_tester.create_and_check_model_fp16_forward(*config_and_inputs)
|
||||
@@ -1063,7 +1063,7 @@ class MT5EncoderOnlyModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.Te
|
||||
config_and_inputs = self.model_tester.prepare_config_and_inputs()
|
||||
self.model_tester.create_and_check_model(*config_and_inputs)
|
||||
|
||||
@unittest.skipIf(torch_device == "cpu", "Cant do half precision")
|
||||
@unittest.skipIf(torch_device == "cpu", "Can't do half precision")
|
||||
def test_model_fp16_forward(self):
|
||||
config_and_inputs = self.model_tester.prepare_config_and_inputs()
|
||||
self.model_tester.create_and_check_model_fp16_forward(*config_and_inputs)
|
||||
@@ -1100,7 +1100,7 @@ class MT5IntegrationTest(unittest.TestCase):
|
||||
@slow
|
||||
def test_small_integration_test(self):
|
||||
"""
|
||||
For comparision run:
|
||||
For comparison run:
|
||||
>>> import t5 # pip install t5==0.7.1
|
||||
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ class TFMT5ModelIntegrationTest(unittest.TestCase):
|
||||
@slow
|
||||
def test_small_integration_test(self):
|
||||
"""
|
||||
For comparision run:
|
||||
For comparison run:
|
||||
>>> import t5 # pip install t5==0.7.1
|
||||
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user