}
if (replaceable) {
ReplaceOperationWithIdentity(0, node, output);
+ continue;
}
}
}
if (replaceable) {
ReplaceOperationWithIdentity(0, node, output);
+ continue;
}
}
}
- if (IsTile(*node) &&
+ if (use_shape_info && IsTile(*node) &&
properties->GetInputProperties(node->name()).size() == 2) {
const auto& m = properties->GetInputProperties(node->name())[1];
if (TensorShape::IsValid(m.shape()) && m.has_value()) {
}
if (replaceable) {
ReplaceOperationWithIdentity(0, node, output);
+ continue;
}
}
}
- if (IsPad(*node) &&
+ if (use_shape_info && IsPad(*node) &&
properties->GetInputProperties(node->name()).size() >= 2) {
const auto& p = properties->GetInputProperties(node->name())[1];
if (TensorShape::IsValid(p.shape()) && p.has_value()) {
}
if (replaceable) {
ReplaceOperationWithIdentity(0, node, output);
+ continue;
}
}
}
}
if (replaceable) {
ReplaceOperationWithIdentity(0, node, output);
+ continue;
}
}