Expand - 8 vs 13

Files changed (1) hide show
  1. Expand8 → Expand13 +1 -0
Expand8 → Expand13 RENAMED
@@ -1 +1 @@
1
1
  Broadcast the input tensor following the given shape and the broadcast rule.
2
2
  The broadcast rule is similar to numpy.array(input) * numpy.ones(shape):
3
3
  Dimensions are right alignment;
4
4
  Two corresponding dimensions must have the same value, or one of them is equal to 1.
5
5
  Also, this operator is similar to numpy.broadcast_to(input, shape),
6
6
  but the major difference is numpy.broadcast_to() does not allow shape to be smaller than input.size().
7
7
  It is possible that the output.shape is not equal to shape, when some dimensions in shape is equal to 1,
8
8
  or the shape.ndim < input.shape.ndim.
9
9
  **Inputs**
10
10
  * **input** (heterogeneous) - **T**:
11
11
  Input tensor
12
12
  * **shape** (heterogeneous) - **tensor(int64)**:
13
13
  A 1-D tensor indicates the shape you want to expand to, following
14
14
  the broadcast rule
15
15
  **Outputs**
16
16
  * **output** (heterogeneous) - **T**:
17
17
  Output tensor
18
18
  **Type Constraints**
19
19
  * **T** in (
20
+ tensor(bfloat16),
20
21
  tensor(bool),
21
22
  tensor(complex128),
22
23
  tensor(complex64),
23
24
  tensor(double),
24
25
  tensor(float),
25
26
  tensor(float16),
26
27
  tensor(int16),
27
28
  tensor(int32),
28
29
  tensor(int64),
29
30
  tensor(int8),
30
31
  tensor(string),
31
32
  tensor(uint16),
32
33
  tensor(uint32),
33
34
  tensor(uint64),
34
35
  tensor(uint8)
35
36
  ):
36
37
  Constrain input and output types to all tensors.