mindspore_gl.graph.PadDirection
- class mindspore_gl.graph.PadDirection[source]
Padding Direction for 2d array specifically.
PadDirection.ROW
: padding in the direction of the row.PadDirection.COL
: padding in the direction of the col.
- Supported Platforms:
Ascend
GPU
Examples
>>> from mindspore_gl.graph import PadDirection >>> row = PadDirection.ROW >>> print(row.name, row.value) ROW 1 >>> col = PadDirection.COL >>> print(col.name, col.value) COL 2