Browse Source

rm empty_tensor inputs for merge

tags/v1.1.0
chenyemeng 3 years ago
parent
commit
a910c80fbf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/passes/merge_pass.cc

+ 1
- 1
ge/graph/passes/merge_pass.cc View File

@@ -34,7 +34,7 @@ using domi::SUCCESS;
namespace ge { namespace ge {
const int kValueIndexOutputIndex = 1; const int kValueIndexOutputIndex = 1;


bool IsEmptyTensor(const GeShape &shpae) {
bool IsEmptyTensor(const GeShape &shape) {
const auto &dims = shape.GetDims(); const auto &dims = shape.GetDims();
return std::any_of(dims.begin(), dims.end(), [](int64_t dim) { return dim == 0; }); return std::any_of(dims.begin(), dims.end(), [](int64_t dim) { return dim == 0; });
} }


Loading…
Cancel
Save