mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
add batch size to config & log stderr output from tests
This commit is contained in:
@@ -18,7 +18,7 @@ class GoalFunction:
|
||||
self.use_cache = use_cache
|
||||
self.num_queries = 0
|
||||
if self.use_cache:
|
||||
self._call_model_cache = lru.LRU(2**18)
|
||||
self._call_model_cache = lru.LRU(utils.config('MODEL_CACHE_SIZE'))
|
||||
else:
|
||||
self._call_model_cache = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user