{"record":{"id":"729f8d2787a63e20","repo":"keras-team/keras","slug":"shape-argument-cannot-contain-none-received","errorCode":null,"errorMessage":"`shape` argument cannot contain `None`. Received: shape={shape}","messagePattern":"`shape` argument cannot contain `None`\\. Received: shape=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/numpy.py","lineNumber":5112,"sourceCode":"\n    else:\n        x_final = ov_opset.constant(dx, dtype=y_type).output(0)\n\n    result = ov_opset.multiply(y_final, x_final).output(0)\n    const_axis = ov_opset.constant([axis], Type.i64).output(0)\n    result = ov_opset.reduce_sum(result, const_axis, False).output(0)\n\n    return OpenVINOKerasTensor(result)\n\n\ndef unravel_index(indices, shape):\n    indices = get_ov_output(indices)\n    if not indices.get_element_type().is_integral():\n        indices = ov_opset.convert(indices, Type.i64).output(0)\n    indices_dtype = indices.get_element_type()\n\n    if None in shape:\n        raise ValueError(\n            f\"`shape` argument cannot contain `None`. Received: shape={shape}\"\n        )\n\n    if isinstance(shape, tuple):\n        shape = list(shape)\n\n    # Handle negative indices\n    total_size = math.prod(shape)\n    total_size_const = ov_opset.constant(total_size, indices_dtype).output(0)\n\n    zero = ov_opset.constant(0, indices_dtype).output(0)\n    is_negative = ov_opset.less(indices, zero).output(0)\n    indices = ov_opset.select(\n        is_negative, ov_opset.add(indices, total_size_const), indices\n    ).output(0)\n\n    coords = []\n    for dim_size in reversed(shape):","sourceCodeStart":5094,"sourceCodeEnd":5130,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/numpy.py#L5094-L5130","documentation":"Error \"`shape` argument cannot contain `None`. Received: shape={shape}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/numpy.py:5112 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"}