update-doc-pybind
Yi Wang 8 years ago committed by zchen0211
parent c1bb602e6b
commit be56bf9fae

@ -21,8 +21,9 @@ message ProgramDesc {
} }
message BlockDesc { message BlockDesc {
repeated VarDesc vars = 1; required int32 parent = 1;
repeated OpDesc ops = 2; repeated VarDesc vars = 2;
repeated OpDesc ops = 3;
} }
message OpDesc { 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: With this design, the InferShape function should take the following parameters:
```c++ ```c++
void InferShape(const ProgramDesc* program, void InferShape(int current_block,
int current_block, int current_operator,
int current_operator) { ProgramDesc* program // might change VarDesc values.
) {
... ...
} }
``` ```

Loading…
Cancel
Save