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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-31 UTC."],[],[]]