Browse Source

little change

tags/v1.0.0alpha
YWMditto 2 years ago
parent
commit
ba8971fcf3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fastNLP/core/controllers/evaluator.py

+ 1
- 1
fastNLP/core/controllers/evaluator.py View File

@@ -98,7 +98,7 @@ class Evaluator:

self.separator = kwargs.get('separator', '#')
self.model_use_eval_mode = kwargs.get('model_use_eval_mode', True)
use_dist_sampler = kwargs.get("use_dist_sampler", driver.is_distributed())
use_dist_sampler = kwargs.get("use_dist_sampler", self.driver.is_distributed())
if use_dist_sampler:
self._dist_sampler = "unrepeatdist"
else:


Loading…
Cancel
Save