@@ -5221,7 +5221,7 @@ node = onnx.helper.make_node(
52215221 'Gather',
52225222 inputs=['data', 'indices'],
52235223 outputs=['y'],
5224- axis=1 ,
5224+ axis=0 ,
52255225)
52265226data = np.arange(10).astype(np.float32)
52275227indices = np.array([0, -9, -10])
@@ -5738,7 +5738,7 @@ node = onnx.helper.make_node(
57385738)
57395739a = np.random.ranf([2, 3]).astype(np.float32)
57405740b = np.random.ranf([3, 4]).astype(np.float32)
5741- c = np.array(3.14)
5741+ c = np.array(3.14).astype(np.float32)
57425742y = gemm_reference_implementation(a, b, c)
57435743expect(node, inputs=[a, b, c], outputs=[y],
57445744 name='test_gemm_default_scalar_bias')
@@ -6218,11 +6218,9 @@ expect(node, inputs=[x], outputs=[y],
62186218### <a name="Hardmax"></a><a name="hardmax">**Hardmax**</a>
62196219
62206220 The operator computes the hardmax (1 for the first maximum value, and 0 for all others) values for each layer in the batch
6221- of the given input. The input is a 2-D tensor (Tensor<float>) of size
6222- (batch_size x input_feature_dimensions). The output tensor has the same shape
6223- and contains the hardmax values of the corresponding input.
6221+ of the given input.
62246222
6225- Input does not need to explicitly be a 2D vector; rather, it will be
6223+ The input does not need to explicitly be a 2D vector; rather, it will be
62266224 coerced into one. For an arbitrary n-dimensional tensor
62276225 input \in [a_0, a_1, ..., a_{k-1}, a_k, ..., a_{n-1}] and k is
62286226 the axis provided, then input will be coerced into a 2-dimensional tensor with
@@ -6231,7 +6229,8 @@ expect(node, inputs=[x], outputs=[y],
62316229 of dimensions [a_0, a_1 * ... * a_{n-1}], where a_0 is often the batch size.
62326230 In this situation, we must have a_0 = N and a_1 * ... * a_{n-1} = D.
62336231 Each of these dimensions must be matched correctly, or else the operator
6234- will throw errors.
6232+ will throw errors. The output tensor has the same shape
6233+ and contains the hardmax values of the corresponding input.
62356234
62366235#### Version
62376236
@@ -7303,11 +7302,9 @@ expect(node, inputs=[x], outputs=[y],
73037302### <a name="LogSoftmax"></a><a name="logsoftmax">**LogSoftmax**</a>
73047303
73057304 The operator computes the logsoftmax (log of softmax) values for each layer in the batch
7306- of the given input. The input is a 2-D tensor (Tensor<float>) of size
7307- (batch_size x input_feature_dimensions). The output tensor has the same shape
7308- and contains the logsoftmax values of the corresponding input.
7305+ of the given input.
73097306
7310- Input does not need to explicitly be a 2D vector; rather, it will be
7307+ The input does not need to explicitly be a 2D vector; rather, it will be
73117308 coerced into one. For an arbitrary n-dimensional tensor
73127309 input \in [a_0, a_1, ..., a_{k-1}, a_k, ..., a_{n-1}] and k is
73137310 the axis provided, then input will be coerced into a 2-dimensional tensor with
@@ -7316,7 +7313,8 @@ expect(node, inputs=[x], outputs=[y],
73167313 of dimensions [a_0, a_1 * ... * a_{n-1}], where a_0 is often the batch size.
73177314 In this situation, we must have a_0 = N and a_1 * ... * a_{n-1} = D.
73187315 Each of these dimensions must be matched correctly, or else the operator
7319- will throw errors.
7316+ will throw errors. The output tensor has the same shape
7317+ and contains the logsoftmax values of the corresponding input.
73207318
73217319#### Version
73227320
@@ -16427,11 +16425,9 @@ expect(node, inputs=[x, starts, ends, axes, steps], outputs=[y],
1642716425### <a name="Softmax"></a><a name="softmax">**Softmax**</a>
1642816426
1642916427 The operator computes the softmax (normalized exponential) values for each layer in the batch
16430- of the given input. The input is a 2-D tensor (Tensor<float>) of size
16431- (batch_size x input_feature_dimensions). The output tensor has the same shape
16432- and contains the softmax values of the corresponding input.
16428+ of the given input.
1643316429
16434- Input does not need to explicitly be a 2D vector; rather, it will be
16430+ The input does not need to explicitly be a 2D vector; rather, it will be
1643516431 coerced into one. For an arbitrary n-dimensional tensor
1643616432 input \in [a_0, a_1, ..., a_{k-1}, a_k, ..., a_{n-1}] and k is
1643716433 the axis provided, then input will be coerced into a 2-dimensional tensor with
@@ -16440,7 +16436,8 @@ expect(node, inputs=[x, starts, ends, axes, steps], outputs=[y],
1644016436 of dimensions [a_0, a_1 * ... * a_{n-1}], where a_0 is often the batch size.
1644116437 In this situation, we must have a_0 = N and a_1 * ... * a_{n-1} = D.
1644216438 Each of these dimensions must be matched correctly, or else the operator
16443- will throw errors.
16439+ will throw errors. The output tensor has the same shape
16440+ and contains the softmax values of the corresponding input.
1644416441
1644516442#### Version
1644616443
0 commit comments