!8590 debugger should not read unused slots for BatchNorm

From: @john_tzanakakis
Reviewed-by: @mikef,@nsyca
Signed-off-by: @nsyca
pull/8590/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 009c0e9372

@ -89,8 +89,8 @@ std::vector<int> CheckRealOutput(const std::string &node_name, const size_t &out
std::vector<int> real_outputs;
// P.FusedBatchNorm is used for training; P.BatchNorm is used for inference
// 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});
} else {
// by default, TensorLoader will load all outputs

Loading…
Cancel
Save