You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a tensor with specific constant value. The value can be specified by the 'value'
8562
-
attribute. The shape of the output tensor is the same as the input tensor, if the input
8563
-
tensor is provided, or the shape provided in the 'shape' attribute (if both are provided,
8564
-
the input tensor shape takes precendence). The data type can be specified by the 'dtype'
8565
-
argument. If 'dtype' is not specified, then the type of input tensor is used. If input
8566
-
tensor is also not specified, then the type defaults to 'float'.
8567
-
8568
-
The 'dtype' argument must be one of the data types specified in the 'DataType' enum field in the
8569
-
TensorProto message and be valid as an output type.
8570
-
8571
-
#### Version
8572
-
8573
-
This version of the operator has been available since version 9 of the default ONNX operator set.
8574
-
8575
-
#### Attributes
8576
-
8577
-
<dl>
8578
-
<dt><tt>dtype</tt> : int</dt>
8579
-
<dd>(Optional) The data type for the elements of the output tensor. If not specified,the data type of the input tensor T1 is used. If input tensor T1 is also not specified, then output tensor type defaults to 'float'.</dd>
8580
-
<dt><tt>shape</tt> : list of ints</dt>
8581
-
<dd>(Optional) The shape of the output tensor. If input tensor T1 is provided, then 'shape' attribute is ignored and the output follows the shape of the input. One of either input tensor T1 or 'shape' attribute must be provided.</dd>
8582
-
<dt><tt>value</tt> : float (default is 0.0)</dt>
8583
-
<dd>(Optional) The value for the elements of the output tensor.</dd>
8584
-
</dl>
8585
-
8586
-
#### Inputs (0 - 1)
8587
-
8588
-
<dl>
8589
-
<dt><tt>input</tt> (optional) : T1</dt>
8590
-
<dd>Input tensor to copy shape, and optionally, type information from. One of either input tensor T1 or 'shape' attribute must be provided.</dd>
8591
-
</dl>
8592
-
8593
-
#### Outputs
8594
-
8595
-
<dl>
8596
-
<dt><tt>output</tt> : T2</dt>
8597
-
<dd>Output tensor, same shape as input tensor T1.</dd>
@@ -8618,27 +8568,27 @@ This version of the operator has been available since version 9 of the default O
8618
8568
8619
8569
<dl>
8620
8570
<dt><tt>value</tt> : tensor</dt>
8621
-
<dd>(Optional) The value of the output elements.Should be a one-element tensor. </dd>
8571
+
<dd>(Optional) The value of the output elements.Should be a one-element tensor. If not specified, it defaults to a tensor of value 0 and datatype float32</dd>
8622
8572
</dl>
8623
8573
8624
8574
#### Inputs
8625
8575
8626
8576
<dl>
8627
8577
<dt><tt>input</tt> : T1</dt>
8628
-
<dd>1D tensor, The shape of the expected output tensor. If empty tensor is given, the output would be a scalar.</dd>
8578
+
<dd>1D tensor. The shape of the expected output tensor. If empty tensor is given, the output would be a scalar.</dd>
8629
8579
</dl>
8630
8580
8631
8581
#### Outputs
8632
8582
8633
8583
<dl>
8634
8584
<dt><tt>output</tt> : T2</dt>
8635
-
<dd>Output tensor, using input as shape.If attribute 'value' exist, all value and datatype of output tensor equal to 'value'.Else, all value equal to 0, and datatype default to float32</dd>
8585
+
<dd>Output tensor of shape specified by 'input'.If attribute 'value' is specified, the value and datatype of the output tensor is taken from 'value'.If attribute 'value' is not specified, the value in the output defaults to 0, and the datatype defaults to float32.</dd>
Generate a tensor with specific constant value. The value can be specified by the 'value'
2086
-
attribute. The shape of the output tensor is the same as the input tensor, if the input
2087
-
tensor is provided, or the shape provided in the 'shape' attribute (if both are provided,
2088
-
the input tensor shape takes precendence). The data type can be specified by the 'dtype'
2089
-
argument. If 'dtype' is not specified, then the type of input tensor is used. If input
2090
-
tensor is also not specified, then the type defaults to 'float'.
2091
-
2092
-
The 'dtype' argument must be one of the data types specified in the 'DataType' enum field in the
2093
-
TensorProto message and be valid as an output type.
2094
-
2095
-
#### Version
2096
-
2097
-
This version of the operator has been available since version 9 of the default ONNX operator set.
2098
-
2099
-
#### Attributes
2100
-
2101
-
<dl>
2102
-
<dt><tt>dtype</tt> : int</dt>
2103
-
<dd>(Optional) The data type for the elements of the output tensor. If not specified,the data type of the input tensor T1 is used. If input tensor T1 is also not specified, then output tensor type defaults to 'float'.</dd>
2104
-
<dt><tt>shape</tt> : list of ints</dt>
2105
-
<dd>(Optional) The shape of the output tensor. If input tensor T1 is provided, then 'shape' attribute is ignored and the output follows the shape of the input. One of either input tensor T1 or 'shape' attribute must be provided.</dd>
2106
-
<dt><tt>value</tt> : float (default is 0.0)</dt>
2107
-
<dd>(Optional) The value for the elements of the output tensor.</dd>
2108
-
</dl>
2109
-
2110
-
#### Inputs (0 - 1)
2111
-
2112
-
<dl>
2113
-
<dt><tt>input</tt> (optional) : T1</dt>
2114
-
<dd>Input tensor to copy shape, and optionally, type information from. One of either input tensor T1 or 'shape' attribute must be provided.</dd>
2115
-
</dl>
2116
-
2117
-
#### Outputs
2118
-
2119
-
<dl>
2120
-
<dt><tt>output</tt> : T2</dt>
2121
-
<dd>Output tensor, same shape as input tensor T1.</dd>
@@ -2203,27 +2091,27 @@ This version of the operator has been available since version 9 of the default O
2203
2091
2204
2092
<dl>
2205
2093
<dt><tt>value</tt> : tensor</dt>
2206
-
<dd>(Optional) The value of the output elements.Should be a one-element tensor. </dd>
2094
+
<dd>(Optional) The value of the output elements.Should be a one-element tensor. If not specified, it defaults to a tensor of value 0 and datatype float32</dd>
2207
2095
</dl>
2208
2096
2209
2097
#### Inputs
2210
2098
2211
2099
<dl>
2212
2100
<dt><tt>input</tt> : T1</dt>
2213
-
<dd>1D tensor, The shape of the expected output tensor. If empty tensor is given, the output would be a scalar.</dd>
2101
+
<dd>1D tensor. The shape of the expected output tensor. If empty tensor is given, the output would be a scalar.</dd>
2214
2102
</dl>
2215
2103
2216
2104
#### Outputs
2217
2105
2218
2106
<dl>
2219
2107
<dt><tt>output</tt> : T2</dt>
2220
-
<dd>Output tensor, using input as shape.If attribute 'value' exist, all value and datatype of output tensor equal to 'value'.Else, all value equal to 0, and datatype default to float32</dd>
2108
+
<dd>Output tensor of shape specified by 'input'.If attribute 'value' is specified, the value and datatype of the output tensor is taken from 'value'.If attribute 'value' is not specified, the value in the output defaults to 0, and the datatype defaults to float32.</dd>
0 commit comments