Div - 6 vs 7¶
- Div6 → Div7 +5 -30
Div6 → Div7
RENAMED
@@ -1 +1 @@
|
|
1
|
-
Performs element-wise binary division (with
|
1
|
+
Performs element-wise binary division (with Numpy-style broadcasting support).
|
2
|
+
This operator supports **multidirectional (i.e., Numpy-style) broadcasting**; for more details please check Broadcasting in ONNX <https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md>_.
|
2
|
-
If necessary the right-hand-side argument will be broadcasted to match the
|
3
|
-
shape of left-hand-side argument. When broadcasting is specified, the second
|
4
|
-
tensor can either be of element size 1 (including a scalar tensor and any
|
5
|
-
tensor with rank equal to or smaller than the first tensor), or having its
|
6
|
-
shape as a contiguous subset of the first tensor's shape. The starting of the
|
7
|
-
mutually equal shape is specified by the argument "axis", and if it is not set,
|
8
|
-
suffix matching is assumed. 1-dim expansion doesn't work yet.
|
9
|
-
|
10
|
-
For example, the following tensor shapes are supported (with broadcast=1):
|
11
|
-
|
12
|
-
shape(A) = (2, 3, 4, 5), shape(B) = (,), i.e. B is a scalar tensor
|
13
|
-
shape(A) = (2, 3, 4, 5), shape(B) = (1, 1), i.e. B is an 1-element tensor
|
14
|
-
shape(A) = (2, 3, 4, 5), shape(B) = (5,)
|
15
|
-
shape(A) = (2, 3, 4, 5), shape(B) = (4, 5)
|
16
|
-
shape(A) = (2, 3, 4, 5), shape(B) = (3, 4), with axis=1
|
17
|
-
shape(A) = (2, 3, 4, 5), shape(B) = (2), with axis=0
|
18
|
-
|
19
|
-
Attribute broadcast=1 needs to be passed to enable broadcasting.
|
20
|
-
|
21
|
-
**Attributes**
|
22
|
-
|
23
|
-
* **axis**:
|
24
|
-
If set, defines the broadcast dimensions. See doc for details.
|
25
|
-
* **broadcast**:
|
26
|
-
Pass 1 to enable broadcasting
|
27
3
|
**Inputs**
|
28
4
|
* **A** (heterogeneous) - **T**:
|
29
|
-
First operand
|
5
|
+
First operand.
|
30
6
|
* **B** (heterogeneous) - **T**:
|
7
|
+
Second operand.
|
31
|
-
Second operand. With broadcasting can be of smaller size than A. If
|
32
|
-
broadcasting is disabled it should be of the same size.
|
33
8
|
**Outputs**
|
34
9
|
* **C** (heterogeneous) - **T**:
|
35
|
-
Result, has same
|
10
|
+
Result, has same element type as two inputs
|
36
11
|
**Type Constraints**
|
37
12
|
* **T** in (
|
38
13
|
tensor(double),
|
39
14
|
tensor(float),
|
40
15
|
tensor(float16),
|
41
16
|
tensor(int32),
|
42
17
|
tensor(int64),
|
43
18
|
tensor(uint32),
|
44
19
|
tensor(uint64)
|
45
20
|
):
|
46
21
|
Constrain input and output types to high-precision numeric tensors.
|