mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
support custom models; waiting on datasets integration
This commit is contained in:
@@ -59,7 +59,7 @@ def validate_model_goal_function_compatibility(goal_function_class, model_class)
|
||||
|
||||
# Otherwise, this is an unknown model–perhaps user-provided, or we forgot to
|
||||
# update the corresponding dictionary. Warn user and return.
|
||||
logger.warn(f'Unknown if model {model} compatible with goal function {goal_function}.')
|
||||
logger.warn(f'Unknown if model of class {model_class} compatible with goal function {goal_function}.')
|
||||
return True
|
||||
|
||||
def validate_model_gradient_word_swap_compatibility(model):
|
||||
|
||||
Reference in New Issue
Block a user