{"record":{"id":"552ea76ec90bbaf7","repo":"keras-team/keras","slug":"ldexp-exponent-must-be-an-integer-type-received","errorCode":null,"errorMessage":"ldexp exponent must be an integer type. Received: x2 dtype={x2.dtype}","messagePattern":"ldexp exponent must be an integer type\\. Received: x2 dtype=(.+?)","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/jax/numpy.py","lineNumber":914,"sourceCode":"\ndef kron(x1, x2):\n    x1 = convert_to_tensor(x1)\n    x2 = convert_to_tensor(x2)\n    return jnp.kron(x1, x2)\n\n\ndef lcm(x1, x2):\n    x1 = convert_to_tensor(x1)\n    x2 = convert_to_tensor(x2)\n    return jnp.lcm(x1, x2)\n\n\ndef ldexp(x1, x2):\n    x1 = convert_to_tensor(x1)\n    x2 = convert_to_tensor(x2)\n\n    if standardize_dtype(x2.dtype) not in dtypes.INT_TYPES:\n        raise TypeError(\n            f\"ldexp exponent must be an integer type. \"\n            f\"Received: x2 dtype={x2.dtype}\"\n        )\n\n    return jnp.ldexp(x1, x2)\n\n\ndef less(x1, x2):\n    x1 = convert_to_tensor(x1)\n    x2 = convert_to_tensor(x2)\n    return jnp.less(x1, x2)\n\n\ndef less_equal(x1, x2):\n    x1 = convert_to_tensor(x1)\n    x2 = convert_to_tensor(x2)\n    return jnp.less_equal(x1, x2)\n","sourceCodeStart":896,"sourceCodeEnd":932,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/jax/numpy.py#L896-L932","documentation":"Error \"ldexp exponent must be an integer type. Received: x2 dtype={x2.dtype}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/jax/numpy.py:914 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","schemaVersion":2},"datasetVersion":"2026-08-26T02:17:13.382Z"}