提交 be56bf9f 编写于 作者: Y Yi Wang 提交者: zchen0211

Update

上级 c1bb602e
......@@ -21,8 +21,9 @@ message ProgramDesc {
}
message BlockDesc {
repeated VarDesc vars = 1;
repeated OpDesc ops = 2;
required int32 parent = 1;
repeated VarDesc vars = 2;
repeated OpDesc ops = 3;
}
message OpDesc {
......@@ -46,9 +47,10 @@ A nested block is often an attribute of an operator, most likely, an IfElseOp or
With this design, the InferShape function should take the following parameters:
```c++
void InferShape(const ProgramDesc* program,
int current_block,
int current_operator) {
void InferShape(int current_block,
int current_operator,
ProgramDesc* program // might change VarDesc values.
) {
...
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册