update log

This commit is contained in:
luoyang 2021-12-03 15:04:59 +08:00
parent f90d2ab318
commit f3e1794a74
2 changed files with 3 additions and 2 deletions

View File

@ -184,7 +184,9 @@ Status AutoTune::RunIteration() {
// Close AutoTune in Non-sink mode, since it's not ready for test.
if (!IsSink()) {
MS_LOG(ERROR) << "Dataset AutoTune doesn't support non-sink pipeline.";
return Status(StatusCode::kMDUnexpectedError, "Dataset AutoTune doesn't support non-sink pipeline.");
return Status(StatusCode::kMDUnexpectedError,
"Dataset AutoTune hasn't been supported in non-sink mode(dataset_sink_mode=False), check training "
"config or set dataset_sink_mode to True.");
}
// Run every epoch
if ((profiling_manager_->GetNumOfProfiledEpochs()) >= cur_epoch_) {

View File

@ -232,4 +232,3 @@ class TestAutotuneWithProfiler:
with pytest.raises(ValueError):
ds.config.set_autotune_interval(-999)