Sync TensorFlow MLIR ODS with TensorFlow op registry.
tf.BesselI0e and tf.BesselI1e are moved to tf_ops.td as they are now python generated ops, so they do not have summaries and descriptions in the op registry. int8 and int16 support has been added to tf.Acos, tf.Atan, tf.Inv, tf.Reciprocal, tf.Round, and tf.Tan. PiperOrigin-RevId: 317748438 Change-Id: Icb86560d5118c38c69819fd02daa3a3841e113b2
This commit is contained in:
parent
1d0b5f8767
commit
dc756d14ca
@ -53,11 +53,11 @@ def TF_AcosOp : TF_Op<"Acos", [NoSideEffect, SameOperandsAndResultType]> {
|
||||
let summary = "Computes acos of x element-wise.";
|
||||
|
||||
let arguments = (ins
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$x
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$y
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
@ -505,11 +505,11 @@ tf.math.asin(y) # [1.047, 0.785] = x
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$x
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$y
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
@ -638,11 +638,11 @@ tf.math.atan(y) # [1.047, 0.785] = x
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$x
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$y
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
@ -921,48 +921,6 @@ reverse of SpaceToBatch. See below for a precise description.
|
||||
TF_DerivedOperandTypeAttr Tblock_shape = TF_DerivedOperandTypeAttr<1>;
|
||||
}
|
||||
|
||||
def TF_BesselI0eOp : TF_Op<"BesselI0e", [NoSideEffect, SameOperandsAndResultType]> {
|
||||
let summary = "Computes the Bessel i0e function of `x` element-wise.";
|
||||
|
||||
let description = [{
|
||||
Exponentially scaled modified Bessel function of order 0 defined as
|
||||
`bessel_i0e(x) = exp(-abs(x)) bessel_i0(x)`.
|
||||
|
||||
This function is faster and numerically stabler than `bessel_i0(x)`.
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TF_FpTensor:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TF_FpTensor:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
}
|
||||
|
||||
def TF_BesselI1eOp : TF_Op<"BesselI1e", [NoSideEffect, SameOperandsAndResultType]> {
|
||||
let summary = "Computes the Bessel i1e function of `x` element-wise.";
|
||||
|
||||
let description = [{
|
||||
Exponentially scaled modified Bessel function of order 0 defined as
|
||||
`bessel_i1e(x) = exp(-abs(x)) bessel_i1(x)`.
|
||||
|
||||
This function is faster and numerically stabler than `bessel_i1(x)`.
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TF_FpTensor:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TF_FpTensor:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
}
|
||||
|
||||
def TF_BiasAddOp : TF_Op<"BiasAdd", [NoSideEffect]> {
|
||||
let summary = "Adds `bias` to `value`.";
|
||||
|
||||
@ -4225,11 +4183,11 @@ I.e., \\(y = 1 / x\\).
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$x
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$y
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
@ -7004,11 +6962,11 @@ I.e., \\(y = 1 / x\\).
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$x
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$y
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
@ -7734,11 +7692,11 @@ according to the current system rounding mode use std::cint.
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$x
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$y
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
@ -9532,11 +9490,11 @@ Given an input tensor, this function computes tangent of every
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$x
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TensorOf<[BF16, F16, F32, F64, I32, I64, TF_Complex128, TF_Complex64]>:$y
|
||||
TensorOf<[BF16, F16, F32, F64, I16, I32, I64, I8, TF_Complex128, TF_Complex64]>:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
|
@ -1041,4 +1041,46 @@ operation create / operate on a copy of `x`.
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
}
|
||||
|
||||
def TF_BesselI0eOp : TF_Op<"BesselI0e", [NoSideEffect, SameOperandsAndResultType]> {
|
||||
let summary = "Computes the Bessel i0e function of `x` element-wise.";
|
||||
|
||||
let description = [{
|
||||
Exponentially scaled modified Bessel function of order 0 defined as
|
||||
`bessel_i0e(x) = exp(-abs(x)) bessel_i0(x)`.
|
||||
|
||||
This function is faster and numerically stabler than `bessel_i0(x)`.
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TF_FpTensor:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TF_FpTensor:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
}
|
||||
|
||||
def TF_BesselI1eOp : TF_Op<"BesselI1e", [NoSideEffect, SameOperandsAndResultType]> {
|
||||
let summary = "Computes the Bessel i1e function of `x` element-wise.";
|
||||
|
||||
let description = [{
|
||||
Exponentially scaled modified Bessel function of order 0 defined as
|
||||
`bessel_i1e(x) = exp(-abs(x)) bessel_i1(x)`.
|
||||
|
||||
This function is faster and numerically stabler than `bessel_i1(x)`.
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
TF_FpTensor:$x
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TF_FpTensor:$y
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
|
||||
}
|
||||
|
||||
#endif // TF_OPS
|
||||
|
Loading…
Reference in New Issue
Block a user