{"record":{"id":"22f13eb87ef2a2fb","repo":"keras-team/keras","slug":"interpolation-argument-should-be-one-of-inter","errorCode":null,"errorMessage":"`interpolation` argument should be one of: \"{interploations_list}. Received: \"{interpolation}\".","messagePattern":"`interpolation` argument should be one of: \"(.+?)\\. Received: \"(.+?)\"\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/legacy/backend.py","lineNumber":1384,"sourceCode":"    )\n\n    if data_format == \"channels_first\":\n        x = permute_dimensions(x, [0, 2, 3, 1])\n    interpolations = {\n        \"area\": tf.image.ResizeMethod.AREA,\n        \"bicubic\": tf.image.ResizeMethod.BICUBIC,\n        \"bilinear\": tf.image.ResizeMethod.BILINEAR,\n        \"gaussian\": tf.image.ResizeMethod.GAUSSIAN,\n        \"lanczos3\": tf.image.ResizeMethod.LANCZOS3,\n        \"lanczos5\": tf.image.ResizeMethod.LANCZOS5,\n        \"mitchellcubic\": tf.image.ResizeMethod.MITCHELLCUBIC,\n        \"nearest\": tf.image.ResizeMethod.NEAREST_NEIGHBOR,\n    }\n    interploations_list = '\"' + '\", \"'.join(interpolations.keys()) + '\"'\n    if interpolation in interpolations:\n        x = tf.image.resize(x, new_shape, method=interpolations[interpolation])\n    else:\n        raise ValueError(\n            \"`interpolation` argument should be one of: \"\n            f'{interploations_list}. Received: \"{interpolation}\".'\n        )\n    if data_format == \"channels_first\":\n        x = permute_dimensions(x, [0, 3, 1, 2])\n\n    return x\n\n\n@keras_export(\"keras._legacy.backend.resize_volumes\")\ndef resize_volumes(x, depth_factor, height_factor, width_factor, data_format):\n    \"\"\"DEPRECATED.\"\"\"\n    if data_format == \"channels_first\":\n        output = repeat_elements(x, depth_factor, axis=2)\n        output = repeat_elements(output, height_factor, axis=3)\n        output = repeat_elements(output, width_factor, axis=4)\n        return output\n    elif data_format == \"channels_last\":","sourceCodeStart":1366,"sourceCodeEnd":1402,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/legacy/backend.py#L1366-L1402","documentation":"Error \"`interpolation` argument should be one of: \"{interploations_list}. Received: \"{interpolation}\".\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/legacy/backend.py:1384 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"}