keras-team/keras

Documented errors, page 5 of 9. Back to keras-team/keras

Code / MessageTypeSeverityTags
Argument synchronized=True is not supported with JAX.
exception error
Arguments `sample_weight` and `class_weight` cannot be…
validation error
Axis is greater than the maximum allowed value
validation error
If class_mode=" ", y_col=" " column values must be strings.
exception error keras, dataframe, type-validation
Incompatible input shapes: axis values
validation error
Invalid `beta` argument value. It should be > 0. Received…
exception error keras, metrics, fbeta, range-validation
Invalid permutation argument `dims` for Permute Layer. The…
validation error keras, permute, argument-validation, reshaping-layer
`output_size` must be an integer or (depth, height, width)…
exception error
The `features` argument cannot be None or empty.
validation error
Unknown arg for output_mode
validation error
`count_weights` is not used when `output_mode` is not…
validation error
`output_size` must be an integer or (height, width) tuple…
exception error
Undefined shapes are not supported.
validation error
Unexpected keyword arguments
exception error
Weight count mismatch for layer #
exception error keras, loading, hdf5, weights, layer-mismatch
Cannot do batch_dot on inputs with different batch sizes…
exception error keras, batch-dot, batch-size-mismatch, legacy-backend
Cannot pass None at locations
exception error
Cholesky inverse failed
exception error keras, linalg, cholesky, matrix-inverse
Dimension ' ' was specified in the output ' ' but has no…
exception error keras, einsum-dense, einsum-equation, split-equation
Expected mode to be one of `caffe`, `tf` or `torch`…
exception error keras, cropping, shape-validation
Implicitly enabling GPTQ quantization by setting…
validation error keras, quantization, gptq, dtype-policy
Layer " " expects input(s), but it received input tensors…
validation error
`Model.layers` attribute is reserved and should not be…
exception error
The mask provided should be one dimension less than the…
validation error
When providing the `input_tensor` argument, you cannot…
exception error
`cropping` parameter of `Cropping1D` layer must be smaller…
validation error
Invalid value for argument `dtype`. Expected one of
exception error
`padding` should have two elements. Received: padding=
validation error keras, zero-padding2d, argument-validation, padding
Received an invalid value for argument `groups`, expected a…
validation error
`sparse=True` can only be used with the TensorFlow backend.
validation error keras, hashed-crossing, sparse, backend
`sparse=True` may only be used if `output_mode` is…
validation error
The layer was built with input_shape=
validation error keras, normalization, adapt, shape-validation
The provided job_addresses
validation error
AWQ quantization only supports 2D or 3D kernels.
exception error keras, awq, quantization, einsum-dense, kernel-rank
Expected `padding` to be a tuple of 2 tuples of 2 integers…
exception error
Invalid AUC summation method value
validation error keras, metrics, auc, enum, invalid-argument
Invalid mode ' '. Supported modes are: 'full'…
exception error
Must specify exactly two of left_cropping, right_cropping…
exception error keras, image, cropping, argument-validation
num_tokens must be set to use this layer. If the number of…
validation error
self._VALUE_RANGE_VALIDATION_ERROR + f"Received…
validation error keras, color-degeneration, value-range, constructor-validation
The rank of `mean` must be less than or equal to the number…
validation error keras, normalization, rank-validation
top_cropping must be >= 0. Received: top_cropping=
exception error
You must build the layer before accessing `kernel`.
exception error
`idf_weights` must be the same length as vocabulary…
validation error keras, preprocessing, index-lookup, tf-idf, length-mismatch
Please initialize `Bidirectional` layer with a…
validation error
Received an invalid value for `units`, expected a positive…
exception error keras, dense, type-validation, units
`sample_weight` property method has not been implemented in
exception error keras, iterator, not-implemented, abstract-method, sample-weights
The number of dimensions in `start_indices` must match the…
exception error keras, ops, slice, indices
input_tensor specified
exception error
Number of groups ( ) must be a multiple of the number of…
exception error
All `outputs` values must be KerasTensors. Received…
validation error
Invalid `epsilon` configuration. Expected a float…
validation error
Invalid image2 rank: expected rank 3 (single image) or rank…
validation error keras, image, ssim, shape-validation
Invalid `summation_method` argument value
exception error keras, metrics, auc, enum-validation
TF-IDF data must be a 1-index array. Received…
validation error keras, preprocessing, tf-idf, shape-validation
Argument `axes` must be a dict with integer keys. Received…
validation error
If using `weights` as `"imagenet"` with `include_top` as…
exception error keras, argument-validation, typeerror, image-ops
Input should have its
exception error keras, fft2, dynamic-shape, functional-model
`padding='valid'` requires output_size to equal size *…
exception error keras, image, patches, shape-mismatch, input-validation
`size` must have positive height and width. Received: size=
exception error keras, image, resize, argument-validation
The ` ` argument should be a number (or a list of two…
exception error keras, preprocessing, argument-validation, kernel-size
The name " " is used times in the model. All operation…
exception error keras, naming, serialization, graph
adapt() received an empty iterable (no batches). Expected…
validation error keras, normalization, adapt, empty-data
`AutocastScope` can only be used with a floating-point…
validation error
Cannot convert ' ' to a shape.
validation error
`idf_weights` should only be set if output_mode is…
validation error keras, preprocessing, index-lookup, tf-idf, argument-validation
If class_mode="binary" there must be 2 classes.
exception error keras, binary-classification, argument-validation
Invalid input type. Expected `float32` or `float64`…
exception error
Layer `add_metric()` method is deprecated. Add your metric…
exception error keras, metrics, deprecated-api, migration
must be an odd number. Received: =
exception error keras, preprocessing, argument-validation, kernel-size
Operation must be 'min' or 'max', received
exception error
Weight dimension ' ' did not have a match in either the…
exception error keras, einsum-dense, einsum-equation, kernel-shape
add_weight() takes at most 3 positional arguments but
validation error
`dtype` was passed both positionally and as a keyword…
validation error keras, layers, add-weight, dtype
Expected an integer value for `n`, got
validation error keras, repeat-vector, type-validation, argument-validation
Requested the loading of a vocabulary file outside of the…
validation error keras, preprocessing, index-lookup, deserialization, security
The lists `inputs` and `mask` should have the same length…
validation error keras, merge, masking, length-mismatch
Expected `variables` to be a list/tuple/set. Received…
exception error
`input_dim` must be a positive integer. Received: input_dim=
exception error keras, embedding, constructor-validation, input-dim
`labels` property method has not been implemented in
exception error keras, iterator, not-implemented, abstract-method
You need to either pass the `bin_boundaries` argument at…
validation error
Cannot create sharding when device mesh is not set for…
validation error
Invalid `floatx` configuration. Expected one of
validation error
Layer count mismatch when loading weights from file. Model…
exception error keras, loading, hdf5, weights, architecture-mismatch
output_size must be an integer.
exception error
The `weights` argument should be either `None` (random…
exception error keras, cropping, shape-validation
When specifying `crosses`, the argument `crossing_dim`…
validation error
A Keras Variable cannot be used as a boolean.
validation error
If class_mode=" ", y_col=" " column values must be type…
exception error keras, dataframe, type-validation
If using `weights='imagenet'` with `include_top=True`…
exception error
You cannot pass both `batch_size` and `batch_shape` at the…
exception error
Attempted to set a vocabulary larger than the maximum vocab…
validation error keras, preprocessing, index-lookup, vocabulary, size-limit
`cropping` cannot be negative. Received: cropping=
validation error
You need to set either `num_bins` or `bin_boundaries`.
validation error
adaptive_average_pool supports only 1D/2D/3D
exception error
All `HashedCrossing` inputs should have equal shape…
validation error keras, hashed-crossing, shape
Invalid AUC curve value
validation error keras, metrics, auc, enum, invalid-argument
Lora is incompatible with embedding constraints. In order…
exception error
output must be a tuple when multiple outputs are expected…
exception error
`salt` can only be used when `oov_method='farmhash'`…
validation error keras, preprocessing, index-lookup, hashing, argument-validation