{"record":{"id":"6b6553d9e4fea06d","repo":"keras-team/keras","slug":"the-flip-operation-does-not-support-tensors-with","errorCode":null,"errorMessage":"The `flip` operation does not support tensors with dynamic rank for the OpenVINO backend.","messagePattern":"The `flip` operation does not support tensors with dynamic rank for the OpenVINO backend\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/numpy.py","lineNumber":1970,"sourceCode":"def expm1(x):\n    x = get_ov_output(x)\n    x_type = x.get_element_type()\n    if x_type.is_integral():\n        ov_type = OPENVINO_DTYPES[config.floatx()]\n        x = ov_opset.convert(x, ov_type)\n    exp_x = ov_opset.exp(x).output(0)\n    const_one = ov_opset.constant(1, exp_x.get_element_type())\n    result = ov_opset.subtract(exp_x, const_one).output(0)\n    return OpenVINOKerasTensor(result)\n\n\ndef flip(x, axis=None):\n    x_node = get_ov_output(x)\n\n    # Using OpenVINO tensor shape\n    ndim = len(x_node.get_partial_shape())\n    if ndim is None:\n        raise ValueError(\n            \"The `flip` operation does not support tensors with dynamic rank \"\n            \"for the OpenVINO backend.\"\n        )\n\n    if axis is None:\n        axis = list(range(ndim))\n    elif isinstance(axis, int):\n        axis = [axis]\n\n    axis = [a + ndim if a < 0 else a for a in axis]\n\n    begin = [0] * ndim\n    end = [0] * ndim\n    strides = [1] * ndim\n    for a in axis:\n        strides[a] = -1\n\n    all_ones_mask = [1] * ndim","sourceCodeStart":1952,"sourceCodeEnd":1988,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/numpy.py#L1952-L1988","documentation":"Error \"The `flip` operation does not support tensors with dynamic rank for the OpenVINO backend.\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/numpy.py:1970 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"}