tf.keras.ops.gcd

Greatest common divisor of x1 and x2, element-wise.

x1 First input tensor (integer type).
x2 Second input tensor (integer type).

Output tensor, element-wise greatest common divisor of x1 and x2.