未验证 提交 34b79d94 编写于 作者: 王明冬 提交者: GitHub

pass enhance: fix the sequence_conv.pbtxt error, test=develop (#33603)

上级 a327369a
...@@ -117,7 +117,7 @@ InputOrOutputCompat& InputOrOutputCompat::IsOptional() { ...@@ -117,7 +117,7 @@ InputOrOutputCompat& InputOrOutputCompat::IsOptional() {
bool InputOrOutputCompat::operator()( bool InputOrOutputCompat::operator()(
const std::vector<std::string>& input) const { const std::vector<std::string>& input) const {
if (input.empty()) return false; if (input.empty()) return optional_;
for (auto& func : conditions_) { for (auto& func : conditions_) {
if (!func(input)) { if (!func(input)) {
return false; return false;
......
...@@ -12,23 +12,42 @@ def { ...@@ -12,23 +12,42 @@ def {
outputs { outputs {
name: "Out" name: "Out"
} }
}
extra {
attrs { attrs {
name: "paddingTrainable"
type: BOOLEAN
}
attrs {
name: "contextLength" name: "contextLength"
type: INT type: INT
} }
attrs { attrs {
name: "contextStart" name: "contextStart"
type: INT type: INT
} }
attrs { attrs {
name: "contextStride" name: "contextStride"
type: INT type: INT
} }
}
extra {
attrs {
name: "paddingTrainable"
type: BOOLEAN
}
attrs {
name: "op_role"
type: INT
}
attrs {
name: "op_role_var"
type: STRINGS
}
attrs {
name: "op_namescope"
type: STRING
}
attrs {
name: "op_callstack"
type: STRINGS
}
attrs {
name: "op_device"
type: STRING
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册