Fix some errors in the Block design doc (#7460)

add_depthwiseConv_op_gpu
Abhinav Arora 7 years ago committed by GitHub
parent b58c5eec37
commit 777036d7d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -202,8 +202,8 @@ This `OpDesc` value is in the `ops` field of the `BlockDesc` value representing
During the generation of the Protobuf message, the Block should store VarDesc (the Protobuf message which describes Variable) and OpDesc (the Protobuf message which describes Operator). During the generation of the Protobuf message, the Block should store VarDesc (the Protobuf message which describes Variable) and OpDesc (the Protobuf message which describes Operator).
VarDesc in a block should have its name scope to avoid local variables affect parent block's name scope. VarDesc in a block should have its name scope to avoid local variables affecting parent block's name scope.
Child block's name scopes should inherit the parent's so that OpDesc in child block can reference a VarDesc that stored in parent block. For example: Child block's name scopes should inherit the parent's so that OpDesc in child block can reference a VarDesc that is stored in the parent block. For example:
```python ```python
a = pd.Variable(shape=[20, 20]) a = pd.Variable(shape=[20, 20])

Loading…
Cancel
Save