mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
fix training code bug
This commit is contained in:
@@ -250,7 +250,7 @@ def _generate_adversarial_examples(model, attack_class, dataset):
|
||||
|
||||
:return: list(AttackResult) of adversarial examples.
|
||||
"""
|
||||
attack = attack_class(model)
|
||||
attack = attack_class.build(model)
|
||||
|
||||
try:
|
||||
# Fix TensorFlow GPU memory growth
|
||||
|
||||
Reference in New Issue
Block a user