@@ -49,14 +49,14 @@ data in Input(X) are unchanged.
49
49
specified by Attr(shape) is [6, 8], the reshape operator will transform Input(X)
50
50
into a 2-D tensor with shape [6, 8] and leaving Input(X)'s data unchanged.
51
51
52
- 1 . Given a 3-D tensor Input(X) with a shape [2, 4, 6], and the target shape
52
+ 2 . Given a 3-D tensor Input(X) with a shape [2, 4, 6], and the target shape
53
53
specified by Attr(shape) is [2, 3, -1, 2], the reshape operator will transform
54
54
Input(X) into a 4-D tensor with shape [2, 3, 4, 2] and leaving Input(X)'s data
55
55
unchanged. In this case, one and only dimension of Attr(shape) can be set to -1,
56
56
the value of this dimension is inferred from the total element number of
57
57
Input(X) and remaining dimensions.
58
58
59
- 1 . Given a 3-D tensor Input(X) with a shape [2, 4, 6], and the target shape
59
+ 3 . Given a 3-D tensor Input(X) with a shape [2, 4, 6], and the target shape
60
60
specified by Attr(shape) is [-1, 0, 3, 2], the reshape operator will transform
61
61
Input(X) into a 4-D tensor with shape [2, 4, 3, 2] and leaving Input(X)'s data
62
62
unchanged. In this case, besides -1, 0 means the actual dimension value is going
@@ -67,11 +67,13 @@ to be copied from the corresponding dimension of Input(X).
67
67
1. One and only one dimension in Attr(shape) can be set -1. In this case,
68
68
the actual dimension value will be infered from the total element number of
69
69
Input(X) and remaining dimensions.
70
- 1. More than one dimensions in Attr(shape) can be set to 0, which means the real
70
+
71
+ 2. More than one dimensions in Attr(shape) can be set to 0, which means the real
71
72
dimension value will be copied from Input(X) at runtime. Note that the index of
72
73
0 can not exceed Rank(X). For example, Input(X) is a 3-D tensor with shape
73
74
[2, 3, 4], Attr(shape) = [2, 3, 2, 0] is an invalid input.
74
- 1. Input(Shape) has a higher priority than Attr(shape) if it is provided, while
75
+
76
+ 3. Input(Shape) has a higher priority than Attr(shape) if it is provided, while
75
77
Attr(shape) still should be set correctly to gurantee shape inference in
76
78
compile-time.
77
79
0 commit comments