Browse Source

debugger won't read unused slots for BatchNorm

tags/v1.1.0
John Tzanakakis 5 years ago
parent
commit
d45ef4cacb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc

+ 2
- 2
mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc View File

@@ -89,8 +89,8 @@ std::vector<int> CheckRealOutput(const std::string &node_name, const size_t &out
std::vector<int> real_outputs; std::vector<int> real_outputs;
// P.FusedBatchNorm is used for training; P.BatchNorm is used for inference // P.FusedBatchNorm is used for training; P.BatchNorm is used for inference
// can add the filter list for more operators here.... // can add the filter list for more operators here....
if (node_name == "FusedBatchNorm") {
MS_LOG(INFO) << "loading node named FusedBatchNorm.";
if (node_name == "FusedBatchNorm" || node_name == "BatchNorm") {
MS_LOG(INFO) << "loading node named " << node_name;
real_outputs.insert(real_outputs.end(), {0, 3, 4}); real_outputs.insert(real_outputs.end(), {0, 3, 4});
} else { } else {
// by default, TensorLoader will load all outputs // by default, TensorLoader will load all outputs


Loading…
Cancel
Save