浏览代码

fix some log errors

tags/v0.6.0-beta
panfengfeng 5 年前
父节点
当前提交
cbb159de08
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/text_file_op.cc
  2. +2
    -2
      mindspore/dataset/engine/datasets.py

+ 1
- 1
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/text_file_op.cc 查看文件

@@ -58,7 +58,7 @@ Status TextFileOp::Builder::Build(std::shared_ptr<TextFileOp> *op) {
// Throttle the number of workers if we have more workers than files!
if (static_cast<size_t>(builder_num_workers_) > builder_text_files_list_.size()) {
builder_num_workers_ = builder_text_files_list_.size();
MS_LOG(WARNING) << "TextFileOp operator parallelism reduced to " << builder_num_workers_ << " workers.";
MS_LOG(DEBUG) << "TextFileOp operator parallelism reduced to " << builder_num_workers_ << " workers.";
}

builder_schema_ = std::make_unique<DataSchema>();


+ 2
- 2
mindspore/dataset/engine/datasets.py 查看文件

@@ -253,8 +253,8 @@ class Dataset:
If a per_batch_map callable is provided, it will be applied to the batches of tensors.

Note:
The order of using repeat and batch reflects the number of batches. Recommend that
repeat operation should be used after batch operation.
The order of using repeat and batch reflects the number of batches and per_batch_map.
Recommend that repeat operation should be used after batch operation.

Args:
batch_size (int or function): The number of rows each batch is created with. An


正在加载...
取消
保存