DCWIR-Offcial-Demo / textattack /commands /textattack_command.py
PFEemp2024's picture
solving GPU error for previous version
4a1df2e
raw
history blame
No virus
255 Bytes
from abc import ABC, abstractmethod
class TextAttackCommand(ABC):
@staticmethod
@abstractmethod
def register_subcommand(parser):
raise NotImplementedError()
@abstractmethod
def run(self):
raise NotImplementedError()