未验证 提交 4b9e748a 编写于 作者: W wenbin 提交者: GitHub

remove shape check (#41143)

上级 0d5c27b2
......@@ -1327,20 +1327,6 @@ bool OpTeller::Tell(const framework::ir::Node* node, bool use_no_calib_int8,
"the shuffle_channel op does not support dynamic shape yet";
return false;
}
auto* block = desc.Block();
if (block == nullptr) {
VLOG(3) << "The block desc is nullptr, we can't continue to analyze. "
"Developers need to check whether block_desc is passed in "
"the pass.";
return false;
}
auto* input_desc = block->FindVar(desc.Input("X").front());
const auto input_shape = input_desc->GetShape();
if (input_shape.size() != 4) {
VLOG(3) << "input dims is invalid. The input "
"dims size should be 4.";
return false;
}
}
if (op_type == "skip_layernorm") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册