Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarti committed Feb 23, 2024
1 parent 7e40d9d commit ea78f50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/attr/feat/test_feature_attribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ def attribute_step(
return self.method.attribute(**attribute_fn_main_args, **attribution_args)


def test_seq2seq_final_step_per_step_conformity(saliency_mt_model: HuggingfaceEncoderDecoderModel):
out_per_step = saliency_mt_model.attribute(
def test_seq2seq_final_step_per_step_conformity(saliency_mt_model_larger: HuggingfaceEncoderDecoderModel):
out_per_step = saliency_mt_model_larger.attribute(
"Hello ladies and badgers!",
method="per_step_attention",
attribute_target=True,
show_progress=False,
output_step_attributions=True,
)
out_final_step = saliency_mt_model.attribute(
out_final_step = saliency_mt_model_larger.attribute(
"Hello ladies and badgers!",
method="attention",
attribute_target=True,
Expand Down

0 comments on commit ea78f50

Please sign in to comment.