Skip to content

Commit dabb8f6

Browse files
committed
revert
1 parent ea1931c commit dabb8f6

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

textattack/attack_results/failed_attack_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ def goal_function_result_str(self, color_method=None):
2727
failed_str = utils.color_text("[FAILED]", "red", color_method)
2828
return (
2929
self.original_result.get_colored_output(color_method) + " --> " + failed_str
30-
)
30+
)

textattack/attack_results/successful_attack_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99

1010
class SuccessfulAttackResult(AttackResult):
11-
"""The result of a successful attack."""
11+
"""The result of a successful attack."""

textattack/goal_functions/classification/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
from .input_reduction import InputReduction
99
from .classification_goal_function import ClassificationGoalFunction
1010
from .untargeted_classification import UntargetedClassification
11-
from .targeted_classification import TargetedClassification
11+
from .targeted_classification import TargetedClassification

textattack/goal_functions/classification/classification_goal_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ def extra_repr_keys(self):
6868
return []
6969

7070
def _get_displayed_output(self, raw_output):
71-
return int(raw_output.argmax())
71+
return int(raw_output.argmax())

textattack/models/wrappers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from .huggingface_model_wrapper import HuggingFaceModelWrapper
1414
from .pytorch_model_wrapper import PyTorchModelWrapper
1515
from .sklearn_model_wrapper import SklearnModelWrapper
16-
from .tensorflow_model_wrapper import TensorFlowModelWrapper
16+
from .tensorflow_model_wrapper import TensorFlowModelWrapper

0 commit comments

Comments
 (0)