We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d90b40 commit 23a4ebdCopy full SHA for 23a4ebd
tools/static_infer.py
@@ -78,6 +78,7 @@ def main(args):
78
start_epoch = config.get("runner.infer_start_epoch", 0)
79
end_epoch = config.get("runner.infer_end_epoch", 10)
80
batch_size = config.get("runner.infer_batch_size", None)
81
+ use_fleet = config.get("runner.use_fleet", False)
82
os.environ["CPU_NUM"] = str(config.get("runner.thread_num", 1))
83
logger.info("**************common.configs**********")
84
logger.info(
@@ -119,7 +120,7 @@ def main(args):
119
120
reader_start = time.time()
121
122
if use_auc:
- reset_auc(auc_num)
123
+ reset_auc(use_fleet, auc_num)
124
for batch_id, batch_data in enumerate(test_dataloader()):
125
infer_reader_cost += time.time() - reader_start
126
infer_start = time.time()
0 commit comments