Fix typos in strings and comments (#37799)
This commit is contained in:
@@ -924,7 +924,7 @@ class FlavaModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
def test_model_get_set_embeddings(self):
|
||||
pass
|
||||
|
||||
# override as the `logit_scale` parameter initilization is different for FLAVA
|
||||
# override as the `logit_scale` parameter initialization is different for FLAVA
|
||||
def test_initialization(self):
|
||||
config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common()
|
||||
|
||||
@@ -933,7 +933,7 @@ class FlavaModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
model = model_class(config=configs_no_init)
|
||||
for name, param in model.named_parameters():
|
||||
if param.requires_grad:
|
||||
# check if `logit_scale` is initilized as per the original implementation
|
||||
# check if `logit_scale` is initialized as per the original implementation
|
||||
if name == "logit_scale" or name == "flava.logit_scale":
|
||||
self.assertAlmostEqual(
|
||||
param.data.item(),
|
||||
|
||||
Reference in New Issue
Block a user