tf.keras.ops.fmod
Stay organized with collections
Save and categorize content based on your preferences.
Returns the element-wise remainder of division with truncation.
tf.keras.ops.fmod(
x1, x2
)
Computes the remainder complementary to the floor_divide function,
equivalent to the C library function fmod. The result has the same
sign as the dividend x1. This is different from keras.ops.mod
which has the same sign as the divisor x2.
Args |
x1
|
First tensor, the dividend.
|
x2
|
Second tensor, the divisor.
|
Returns |
|
Output tensor, element-wise remainder with truncation.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2026-11-04 UTC.
[null,null,["Last updated 2026-11-04 UTC."],[],[]]