Browse Source

!4022 [MD] Fix Execution Tree Output

Merge pull request !4022 from nhussain/print_op_fix
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
13c63f0289
32 changed files with 5 additions and 66 deletions
  1. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/barrier_op.cc
  2. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/batch_op.cc
  3. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/build_vocab_op.cc
  4. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/cache_base_op.cc
  5. +1
    -3
      mindspore/ccsrc/minddata/dataset/engine/datasetops/cache_merge_op.cc
  6. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/concat_op.cc
  7. +4
    -3
      mindspore/ccsrc/minddata/dataset/engine/datasetops/dataset_op.cc
  8. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc
  9. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/epoch_ctrl_op.cc
  10. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/filter_op.cc
  11. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/map_op/map_op.cc
  12. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/project_op.cc
  13. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/rename_op.cc
  14. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/repeat_op.cc
  15. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/shuffle_op.cc
  16. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/skip_op.cc
  17. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/celeba_op.cc
  18. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/cifar_op.cc
  19. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/clue_op.cc
  20. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/coco_op.cc
  21. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/csv_op.cc
  22. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/generator_op.cc
  23. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/image_folder_op.cc
  24. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/manifest_op.cc
  25. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/mindrecord_op.cc
  26. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/mnist_op.cc
  27. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/random_data_op.cc
  28. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/text_file_op.cc
  29. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/tf_reader_op.cc
  30. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/source/voc_op.cc
  31. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/take_op.cc
  32. +0
    -2
      mindspore/ccsrc/minddata/dataset/engine/datasetops/zip_op.cc

+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/barrier_op.cc View File

@@ -212,8 +212,6 @@ Status BarrierOp::getNextTensorRow(TensorRow *new_row) {

// A function that prints info about the Operator
void BarrierOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <BarrierOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/batch_op.cc View File

@@ -135,8 +135,6 @@ Status BatchOp::operator()() {
}

void BatchOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/build_vocab_op.cc View File

@@ -207,8 +207,6 @@ BuildVocabOp::Builder::Builder()

// A print method typically used for debugging
void BuildVocabOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/cache_base_op.cc View File

@@ -22,8 +22,6 @@ namespace mindspore {
namespace dataset {
// A print method typically used for debugging
void CacheBase::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 1
- 3
mindspore/ccsrc/minddata/dataset/engine/datasetops/cache_merge_op.cc View File

@@ -28,9 +28,7 @@
namespace mindspore {
namespace dataset {
CacheMergeOp::~CacheMergeOp() = default;
void CacheMergeOp::Print(std::ostream &out, bool show_all)
const { // Always show the id and name as first line regardless if this is summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
void CacheMergeOp::Print(std::ostream &out, bool show_all) const {
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/concat_op.cc View File

@@ -42,8 +42,6 @@ ConcatOp::ConcatOp(int32_t op_connector_size) : PipelineOp(op_connector_size), c

// A function that prints info about the Operator
void ConcatOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this is summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 4
- 3
mindspore/ccsrc/minddata/dataset/engine/datasetops/dataset_op.cc View File

@@ -222,7 +222,10 @@ void DatasetOp::Print(std::ostream &out, bool show_all) const {
// When show_all is true, we display more detailed output for the op.
// Derived printers should show their own header info, then call base class printer, followed by
// derived-specific items.
// For now, the base class doesn't have any summary info to show so it's a no-op in that case.

// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";

if (show_all) {
// The detailed display will show common base class info of the op. Allow the derived class to print
// it's own id and name though as the first line.
@@ -239,8 +242,6 @@ void DatasetOp::Print(std::ostream &out, bool show_all) const {
if (sampler_) {
sampler_->Print(out, show_all);
}
} else {
out << Name() << std::endl;
}
}



+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc View File

@@ -307,8 +307,6 @@ Status DeviceQueueOp::SendDataToCPU() {
}

void DeviceQueueOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/epoch_ctrl_op.cc View File

@@ -42,8 +42,6 @@ EpochCtrlOp::~EpochCtrlOp() {}

// A print method typically used for debugging
void EpochCtrlOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/filter_op.cc View File

@@ -90,8 +90,6 @@ Status FilterOp::ValidateInColumns(const std::vector<std::string> *input_columns

// A print method typically used for debugging.
void FilterOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/map_op/map_op.cc View File

@@ -82,8 +82,6 @@ int32_t MapOp::num_consumers() const {

// A print method typically used for debugging
void MapOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/project_op.cc View File

@@ -51,8 +51,6 @@ ProjectOp::ProjectOp(const std::vector<std::string> &columns_to_project)
: PipelineOp(0), columns_to_project_(columns_to_project) {}

void ProjectOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/rename_op.cc View File

@@ -141,8 +141,6 @@ Status RenameOp::ComputeColMap() {
// prints rename
void RenameOp::Print(std::ostream &out, // In: The output stream to print to
bool show_all) const { // In: T/F if it should print everything
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/repeat_op.cc View File

@@ -53,8 +53,6 @@ RepeatOp::~RepeatOp() {}

// A print method typically used for debugging
void RepeatOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/shuffle_op.cc View File

@@ -100,8 +100,6 @@ Status ShuffleOp::SelfReset() {

// A print method typically used for debugging
void ShuffleOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/skip_op.cc View File

@@ -58,8 +58,6 @@ SkipOp::~SkipOp() {}

// A print method typically used for debugging
void SkipOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/celeba_op.cc View File

@@ -386,8 +386,6 @@ Status CelebAOp::LoadTensorRow(row_id_type row_id, const std::pair<std::string,
}

void CelebAOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <CelebAOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/cifar_op.cc View File

@@ -217,8 +217,6 @@ Status CifarOp::LoadBuffer(const std::vector<int64_t> &keys, std::unique_ptr<Dat
}

void CifarOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <CifarOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/clue_op.cc View File

@@ -311,8 +311,6 @@ Status ClueOp::WorkerEntry(int32_t worker_id) {

// A print method typically used for debugging
void ClueOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <ClueOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/coco_op.cc View File

@@ -188,8 +188,6 @@ Status CocoOp::operator()() {
}

void CocoOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <CocoOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/csv_op.cc View File

@@ -512,8 +512,6 @@ Status CsvOp::WorkerEntry(int32_t worker_id) {

// A print method typically used for debugging
void CsvOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <CsvOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/generator_op.cc View File

@@ -61,8 +61,6 @@ GeneratorOp::GeneratorOp(py::function generator_function, std::vector<std::strin
GeneratorOp::~GeneratorOp() { this->Dealloc(); }

void GeneratorOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <GeneratorOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/image_folder_op.cc View File

@@ -228,8 +228,6 @@ Status ImageFolderOp::LoadBuffer(const std::vector<int64_t> &keys, std::unique_p
}

void ImageFolderOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <ImageFolderOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/manifest_op.cc View File

@@ -217,8 +217,6 @@ Status ManifestOp::LoadBuffer(const std::vector<int64_t> &keys, std::unique_ptr<
}

void ManifestOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <ManifestOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/mindrecord_op.cc View File

@@ -196,8 +196,6 @@ MindRecordOp::~MindRecordOp() {}

// A print method typically used for debugging
void MindRecordOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <MindRecordOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/mnist_op.cc View File

@@ -181,8 +181,6 @@ Status MnistOp::LoadBuffer(const std::vector<int64_t> &keys, std::unique_ptr<Dat
}

void MnistOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <MnistOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/random_data_op.cc View File

@@ -91,8 +91,6 @@ RandomDataOp::RandomDataOp(int32_t num_workers, int32_t op_connector_size, int64

// A print method typically used for debugging
void RandomDataOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <RandomDataOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/text_file_op.cc View File

@@ -98,8 +98,6 @@ TextFileOp::TextFileOp(int32_t num_workers, int64_t rows_per_buffer, int64_t tot

// A print method typically used for debugging
void TextFileOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <TextFileOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/tf_reader_op.cc View File

@@ -158,8 +158,6 @@ TFReaderOp::TFReaderOp(int32_t num_workers, int32_t worker_connector_size, int64

// A print method typically used for debugging
void TFReaderOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <TFReaderOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/source/voc_op.cc View File

@@ -166,8 +166,6 @@ Status VOCOp::operator()() {
}

void VOCOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <VOCOp>:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
ParallelOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/take_op.cc View File

@@ -53,8 +53,6 @@ TakeOp::TakeOp(int32_t count, int32_t op_connector_size)

// A print method typically used for debugging
void TakeOp::Print(std::ostream &out, bool show_all) const {
// Always show the id and name as first line regardless if this summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


+ 0
- 2
mindspore/ccsrc/minddata/dataset/engine/datasetops/zip_op.cc View File

@@ -208,8 +208,6 @@ Status ZipOp::drainPipeline() {
// A function that prints info about the Operator
void ZipOp::Print(std::ostream &out, // In: The output stream to print to
bool show_all) const { // In: T/F if it should print everything
// Always show the id and name as first line regardless if this is summary or detailed print
out << "(" << std::setw(2) << operator_id_ << ") <" << Name() << ">:";
if (!show_all) {
// Call the super class for displaying any common 1-liner info
PipelineOp::Print(out, show_all);


Loading…
Cancel
Save