Softsign - 1 vs 22

Next section compares an older to a newer version of the same operator after both definition are converted into markdown text. Green means an addition to the newer version, red means a deletion. Anything else is unchanged.

Files changed (1) hide show
  1. Softsign1 → Softsign22 +1 -1
Softsign1 → Softsign22 RENAMED
@@ -1 +1 @@
1
1
  Calculates the softsign (x/(1+|x|)) of the given input tensor element-wise.
2
2
  #### Function Body
3
3
  The function definition for this operator.
4
4
  <
5
5
  domain: "",
6
6
  opset_import: ["" : 18]
7
7
  >
8
8
  Softsign (input) => (output)
9
9
  {
10
10
  One = Constant <value: tensor = float {1}> ()
11
11
  OneCast = CastLike (One, input)
12
12
  AbsInput = Abs (input)
13
13
  OneAddAbsInput = Add (OneCast, AbsInput)
14
14
  output = Div (input, OneAddAbsInput)
15
15
  }
16
16
  ### Inputs
17
17
  - **input** (heterogeneous) - **T**:
18
18
  Input tensor
19
19
  ### Outputs
20
20
  - **output** (heterogeneous) - **T**:
21
21
  The softsign (x/(1+|x|)) values of the input tensor computed element-wise
22
22
  ### Type Constraints
23
- * **T** in ( tensor(double), tensor(float), tensor(float16) ):
23
+ * **T** in ( tensor(bfloat16), tensor(double), tensor(float), tensor(float16) ):
24
24
  Constrain input and output types to float tensors.