repo stringclasses 21
values | pull_number float64 45 194k | instance_id stringlengths 16 34 | issue_numbers stringlengths 6 27 | base_commit stringlengths 40 40 | patch stringlengths 263 270k | test_patch stringlengths 312 408k | problem_statement stringlengths 38 47.6k | hints_text stringlengths 1 257k ⌀ | created_at stringdate 2016-01-11 17:37:29 2024-10-18 14:52:41 | language stringclasses 4
values | Dockerfile stringclasses 279
values | P2P stringlengths 2 10.2M | F2P stringlengths 11 38.9k | F2F stringclasses 86
values | test_command stringlengths 27 11.4k | task_category stringclasses 5
values | is_no_nodes bool 2
classes | is_func_only bool 2
classes | is_class_only bool 2
classes | is_mixed bool 2
classes | num_func_changes int64 0 238 | num_class_changes int64 0 70 | num_nodes int64 0 264 | is_single_func bool 2
classes | is_single_class bool 2
classes | modified_nodes stringlengths 2 42.2k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
keras-team/keras | 19,863 | keras-team__keras-19863 | ['19535'] | f6cf6a0e77dd504cfc35dd499dd8694b0b80b4ae | diff --git a/keras/src/utils/summary_utils.py b/keras/src/utils/summary_utils.py
--- a/keras/src/utils/summary_utils.py
+++ b/keras/src/utils/summary_utils.py
@@ -76,17 +76,31 @@ def bold_text(x, color=None):
def format_layer_shape(layer):
- if not layer._inbound_nodes:
+ if not layer._inbound_nodes and not ... | diff --git a/keras/src/utils/summary_utils_test.py b/keras/src/utils/summary_utils_test.py
--- a/keras/src/utils/summary_utils_test.py
+++ b/keras/src/utils/summary_utils_test.py
@@ -40,3 +40,37 @@ def print_to_variable(text, line_break=False):
self.assertNotIn("Optimizer params", summary_content)
... | model.summary() broken for custom models subclassed from keras.Model
### Current behavior?
**Custom model classes built from keras.Model do not think they get built properly, and the model.summary() is missing information.** However, the model will run just fine. In keras version 2.15.0, we see it working properly, ... | > the layer does not have a `build()` method implemented and it looks like
it has unbuilt state. This will cause the layer to be marked as built, despite not being actually built, which
may cause failures down the line. Make sure to implement a proper `build()` method.
As indicated by this message, you need to i... | 2024-06-17 09:58:10+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
WORKDIR /testbed
# Install git and build essentials for potential dependencies
RUN apt-get update && apt-get install -y git build-essential
# Copy the entire repository
COPY . .
# Install tensorflow and other backend dependencies first
RUN pip install tensorflow n... | ['keras/src/utils/summary_utils_test.py:SummaryUtilsTest:test_print_model_summary1', 'keras/src/utils/summary_utils_test.py:SummaryUtilsTest:test_print_model_summary0'] | ['keras/src/utils/summary_utils_test.py:SummaryUtilsTest:test_print_model_summary_custom_build'] | null | pytest /testbed/keras/src/utils/summary_utils_test.py -v --junitxml=test-results.xml | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["keras/src/utils/summary_utils.py->module->function_definition:format_layer_shape"] |
keras-team/keras | 19,903 | keras-team__keras-19903 | ['19708'] | 596d5ba420dd2865d576db2c5f860d9d77db8054 | diff --git a/keras/api/_tf_keras/keras/ops/__init__.py b/keras/api/_tf_keras/keras/ops/__init__.py
--- a/keras/api/_tf_keras/keras/ops/__init__.py
+++ b/keras/api/_tf_keras/keras/ops/__init__.py
@@ -16,6 +16,7 @@
from keras.src.ops.core import dtype
from keras.src.ops.core import fori_loop
from keras.src.ops.core im... | diff --git a/keras/src/ops/core_test.py b/keras/src/ops/core_test.py
--- a/keras/src/ops/core_test.py
+++ b/keras/src/ops/core_test.py
@@ -19,6 +19,23 @@
class CoreOpsStaticShapeTest(testing.TestCase):
+ def test_map(self):
+ def f(x):
+ return x**2
+
+ xs = KerasTensor((6,))
+ y... | Request for a map function like map_fn in TF and vmap in Jax
Currently, it seems there is no function to map a function to a tensor in keras 3.0. Such a function should do what map_fn in TF and vmap in Jax do. Otherwise, it is not very challenging to switch between the backends.
Perhaps I missed something here coul... | Do you mean `keras.ops.vectorized_map`?
Hi François,
Thank you for your quick response.
Sorry I am not so familiar with Jax. Now I found that vmap is similar to vectorized_map in TF and keras.
I am particularly interested in map_fn because my operation cannot be vectorialized due to the large intermediate va... | 2024-06-22 15:48:34+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /testbed
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy the entire repository
COPY . .
# ... | ['keras/src/ops/core_test.py:CoreOpsDtypeTest:test_convert_to_tensor20', 'keras/src/ops/core_test.py:CoreOpsCorrectnessTest:test_slice_update', 'keras/src/ops/core_test.py:CoreOpsDtypeTest:test_convert_to_tensor18', 'keras/src/ops/core_test.py:CoreOpsCallsTests:test_slice_basic_call', 'keras/src/ops/core_test.py:CoreOp... | ['keras/src/ops/core_test.py:CoreOpsStaticShapeTest:test_map', 'keras/src/ops/core_test.py:CoreOpsCorrectnessTest:test_map', 'keras/src/ops/core_test.py:CoreOpsCallsTests:test_map_basic_call'] | null | python -m pytest /testbed/keras/src/ops/core_test.py -v --junitxml=test-results.xml | Feature | false | false | false | true | 13 | 2 | 15 | false | false | ["keras/src/ops/core.py->module->function_definition:map", "keras/src/backend/numpy/core.py->module->function_definition:map", "keras/src/backend/numpy/core.py->module->function_definition:map->function_definition:g", "keras/src/backend/jax/core.py->module->function_definition:map", "keras/src/ops/core.py->module->clas... |
keras-team/keras | 19,915 | keras-team__keras-19915 | ['19913'] | f0bae912201bbd265a3485ccf4f490be2fc675c7 | diff --git a/keras/src/export/export_lib.py b/keras/src/export/export_lib.py
--- a/keras/src/export/export_lib.py
+++ b/keras/src/export/export_lib.py
@@ -654,13 +654,18 @@ def make_tensor_spec(structure):
# into plain Python structures because they don't work with jax2tf/JAX.
if isinstance(structure,... | diff --git a/keras/src/export/export_lib_test.py b/keras/src/export/export_lib_test.py
--- a/keras/src/export/export_lib_test.py
+++ b/keras/src/export/export_lib_test.py
@@ -196,6 +196,22 @@ def call(self, inputs):
)
revived_model.serve(bigger_input)
+ # Test with keras.saving_lib
+ t... | Unable to export reloaded model
Saving and reloading model makes it impossible to export it as a SavedModel artifact.
Reloaded model has shapes defined as lists while export function expect tuples.
Casting the shape to tuple in this particular place resolves the issue, but there may be other errors related to this ... | null | 2024-06-25 14:03:04+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
WORKDIR /testbed
# Install git and build essentials for potential dependencies
RUN apt-get update && apt-get install -y git build-essential python3-dev
# Copy the entire repository
COPY . .
# Install JAX with CPU support first (it has specific requirements)
RUN pi... | ['keras/src/export/export_lib_test.py:ExportArchiveTest:test_model_export_method_sequential', 'keras/src/export/export_lib_test.py:ExportArchiveTest:test_model_with_multiple_inputs', 'keras/src/export/export_lib_test.py:ExportArchiveTest:test_multi_input_output_functional_model', 'keras/src/export/export_lib_test.py:Ex... | ['keras/src/export/export_lib_test.py:ExportArchiveTest:test_model_with_input_structure_tuple', 'keras/src/export/export_lib_test.py:ExportArchiveTest:test_model_with_input_structure_array', 'keras/src/export/export_lib_test.py:ExportArchiveTest:test_model_with_input_structure_dict'] | null | pytest /testbed/keras/src/export/export_lib_test.py -v --junitxml=test-results.xml | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | ["keras/src/export/export_lib.py->module->function_definition:_get_input_signature->function_definition:make_tensor_spec"] |
keras-team/keras | 19,924 | keras-team__keras-19924 | ['19921'] | a2e9a5252d2eab389bd19d359e6e7325a8232c79 | diff --git a/keras/src/saving/saving_lib.py b/keras/src/saving/saving_lib.py
--- a/keras/src/saving/saving_lib.py
+++ b/keras/src/saving/saving_lib.py
@@ -160,6 +160,9 @@ def _save_model_to_fileobj(model, fileobj, weights_format):
f.write(config_json.encode())
weights_file_path = None
+ w... | diff --git a/keras/src/saving/saving_lib_test.py b/keras/src/saving/saving_lib_test.py
--- a/keras/src/saving/saving_lib_test.py
+++ b/keras/src/saving/saving_lib_test.py
@@ -634,6 +634,7 @@ def save_own_variables(self, store):
with zipfile.ZipFile(filepath) as zf:
all_filenames = zf.namelist()
... | Bug in Keras 3.4.0: Loading model error 'No such file or directory: 'model.weights.h5'
### Environment:
Ubuntu 22.04
Tensorflow 2.16.1
Keras 3.4.0
### Reproducing steps
(1) Create the following python script `tf-save.py` to generate model file:
```
import os.path
import pandas as pd
import numpy as n... | We have confirmed this issue is not Tensorflow issue but bug introduced in Keras 3.4.0
https://github.com/tensorflow/tensorflow/issues/70273#issuecomment-2191371907
Our MLflow CI starting to fail since yesterday due to the same reason (becaus yesterday Keras 3.4.0 was released)
https://github.com/mlflow-automation/ml... | 2024-06-26 14:50:58+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
WORKDIR /testbed
# Install git and build essentials for potential dependencies
RUN apt-get update && apt-get install -y git build-essential python3-dev
# Copy the entire repository
COPY . .
# Install JAX with CPU support first (it has specific requirements)
RUN pi... | ['keras/src/saving/saving_lib_test.py:SavingBattleTest:test_bidirectional_lstm_saving', 'keras/src/saving/saving_lib_test.py:SavingTest:test_saved_module_paths_and_class_names', 'keras/src/saving/saving_lib_test.py:SavingBattleTest:test_nested_functional_model_saving', 'keras/src/saving/saving_lib_test.py:SavingTest:te... | ['keras/src/saving/saving_lib_test.py:SavingTest:test_save_model_exception_raised'] | null | pytest /testbed/keras/src/saving/saving_lib_test.py -v --junitxml=test-results.xml | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["keras/src/saving/saving_lib.py->module->function_definition:_load_model_from_fileobj", "keras/src/saving/saving_lib.py->module->function_definition:_save_model_to_fileobj"] |
keras-team/keras | 19,931 | keras-team__keras-19931 | ['19919'] | bba7b1a0d6cbee94b04f70514228fca9c1d165ae | diff --git a/keras/src/backend/tensorflow/numpy.py b/keras/src/backend/tensorflow/numpy.py
--- a/keras/src/backend/tensorflow/numpy.py
+++ b/keras/src/backend/tensorflow/numpy.py
@@ -2126,33 +2126,31 @@ def tri(N, M=None, k=0, dtype=None):
def tril(x, k=0):
x = convert_to_tensor(x)
- if k >= 0:
- retu... | diff --git a/keras/src/ops/numpy_test.py b/keras/src/ops/numpy_test.py
--- a/keras/src/ops/numpy_test.py
+++ b/keras/src/ops/numpy_test.py
@@ -4168,13 +4168,15 @@ def test_tril_in_layer(self):
y1 = keras.layers.Lambda(
lambda x: keras.ops.tril(
keras.ops.ones((keras.ops.shape(x)[1... | Ops inconsistency with tensorflow for tril and triu
`ops.tril` and `ops.triu` allow specifying a negative diagonal. For compiled runs, we use a python conditional instead of cond to check the sign of the diagonal which breaks. This is tensorflow specific, other backends allow negative diagonals.
```
../miniconda3/e... | null | 2024-06-28 01:31:19+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
WORKDIR /testbed
# Install git and build essentials for potential dependencies
RUN apt-get update && apt-get install -y git build-essential python3-dev
# Copy the entire repository
COPY . .
# Install JAX with CPU support first (it has specific requirements)
RUN pi... | ['keras/src/ops/numpy_test.py:NumpyDtypeTest:test_expand_dims_float32', 'keras/src/ops/numpy_test.py:NumpyOneInputOpsCorrectnessTest:test_all', 'keras/src/ops/numpy_test.py:NumpyDtypeTest:test_expm1_float64', 'keras/src/ops/numpy_test.py:SparseTest:test_binary_correctness_sparse_tensor_multiply_sparse_dense_float32', '... | ['keras/src/ops/numpy_test.py:NumpyOneInputOpsCorrectnessTest:test_triu_with_jit_in_tf', 'keras/src/ops/numpy_test.py:NumpyOneInputOpsCorrectnessTest:test_tril_with_jit_in_tf'] | null | pytest /testbed/keras/src/ops/numpy_test.py -v --junitxml=test-results.xml | Bug Fix | false | true | false | false | 4 | 0 | 4 | false | false | ["keras/src/backend/tensorflow/numpy.py->module->function_definition:triu", "keras/src/backend/tensorflow/numpy.py->module->function_definition:tril->function_definition:_negative_k_branch", "keras/src/backend/tensorflow/numpy.py->module->function_definition:tril", "keras/src/backend/tensorflow/numpy.py->module->functi... |
keras-team/keras | 19,937 | keras-team__keras-19937 | ['19932'] | 309f2c9c8959222e59d537b447c087a65c8b8998 | diff --git a/keras/src/losses/loss.py b/keras/src/losses/loss.py
--- a/keras/src/losses/loss.py
+++ b/keras/src/losses/loss.py
@@ -1,4 +1,5 @@
from keras.src import backend
+from keras.src import dtype_policies
from keras.src import ops
from keras.src import tree
from keras.src.api_export import keras_export
@@ -10... | diff --git a/keras/src/losses/loss_test.py b/keras/src/losses/loss_test.py
--- a/keras/src/losses/loss_test.py
+++ b/keras/src/losses/loss_test.py
@@ -4,6 +4,7 @@
import pytest
from keras.src import backend
+from keras.src import dtype_policies
from keras.src import losses as losses_module
from keras.src import o... | `unhashable type: 'DTypePolicy'` may leads problems in keras 3.4.1
Hello. Thank you for your contributions and maintenance for the best Keras.
I'm working on a customized loss and using `keras.DTypePolicy` to config the dtype in it, as the following:
```python
class MyCustomizedLoss(keras.losses.Loss):
def __... | Hi @Zhaopudark -
Thanks for reporting the issue. I have tested the code snippet and reproduces the reported behaviour. Attached [gist](https://colab.sandbox.google.com/gist/mehtamansi29/62c99255871ca72042fb42c3f3391c5a/19932-unhashable-type-dtypepolicy-may-leads-problems-in-keras-3-4-1.ipynb) file for reference.
We... | 2024-06-29 15:23:58+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
WORKDIR /testbed
# Install git and build essentials for potential dependencies
RUN apt-get update && apt-get install -y git build-essential python3-dev
# Copy the entire repository
COPY . .
# Install JAX with CPU support first (it has specific requirements)
RUN pi... | ['keras/src/losses/loss_test.py:LossTest:test_pickle', 'keras/src/losses/loss_test.py:LossTest:test_mask', 'keras/src/metrics/metric_test.py:MetricTest:test_serialization', 'keras/src/losses/loss_test.py:LossTest:test_get_method', 'keras/src/metrics/metric_test.py:MetricTest:test_pickle', 'keras/src/losses/loss_test.py... | ['keras/src/metrics/metric_test.py:MetricTest:test_dtype_arg', 'keras/src/losses/loss_test.py:LossTest:test_dtype_arg'] | null | pytest /testbed/keras/src/losses/loss_test.py /testbed/keras/src/metrics/metric_test.py -v --junitxml=test-results.xml | Bug Fix | false | false | false | true | 1 | 24 | 25 | false | false | ["keras/src/metrics/metric.py->module->class_definition:Metric->function_definition:__init__", "keras/src/losses/losses.py->module->class_definition:MeanAbsoluteError", "keras/src/losses/losses.py->module->class_definition:Huber", "keras/src/losses/losses.py->module->class_definition:Tversky", "keras/src/losses/losses.... |
keras-team/keras | 19,955 | keras-team__keras-19955 | ['19952'] | ca9519bf182650cd464d6825de451471b3243627 | diff --git a/keras/src/backend/common/keras_tensor.py b/keras/src/backend/common/keras_tensor.py
--- a/keras/src/backend/common/keras_tensor.py
+++ b/keras/src/backend/common/keras_tensor.py
@@ -90,6 +90,20 @@ def squeeze(self, axis=None):
return ops.Squeeze(axis)(self)
+ def __int__(self):
+ rai... | diff --git a/keras/src/backend/common/variables_test.py b/keras/src/backend/common/variables_test.py
--- a/keras/src/backend/common/variables_test.py
+++ b/keras/src/backend/common/variables_test.py
@@ -1,3 +1,5 @@
+import itertools
+
import numpy as np
import pytest
from absl.testing import parameterized
@@ -11,6 +... | Can't get learning rate as a value instead of a keras.Variable (and docs are incorrect)
I need to capture the learning rate from a compiled keras model (tensorflow backend but it shouldn't matter).
Previously I did this with tf.keras.backend.get_value(...), but keras 3.0 doesn't seem to have an equivalent.
I want to ... | null | 2024-07-04 12:57:24+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
WORKDIR /testbed
# Install git and build essentials for potential dependencies
RUN apt-get update && apt-get install -y git build-essential python3-dev
# Copy the entire repository
COPY . .
# Install JAX with CPU support first (it has specific requirements)
RUN pi... | ['keras/src/backend/common/variables_test.py:VariableDtypeShapeNdimRepr:test_variable_dtype', 'keras/src/backend/common/variables_test.py:VariablePropertiesTest:test_deferred_assignment', 'keras/src/backend/common/variables_test.py:VariablePropertiesTest:test_standardize_dtype_with_torch_dtype', 'keras/src/backend/comm... | ['keras/src/backend/common/variables_test.py:VariableOpsCorrentnessTest:test_round', 'keras/src/backend/common/variables_test.py:VariableOpsCorrentnessTest:test_float', 'keras/src/backend/common/variables_test.py:VariableOpsCorrentnessTest:test_int', 'keras/src/backend/common/variables_test.py:VariableOpsBehaviorTest:t... | null | pytest /testbed/keras/src/backend/common/variables_test.py -v --junitxml=test-results.xml | Bug Fix | false | false | false | true | 36 | 3 | 39 | false | false | ["keras/src/backend/common/variables.py->module->class_definition:KerasVariable->function_definition:__eq__", "keras/src/backend/common/variables.py->module->class_definition:KerasVariable->function_definition:__and__", "keras/src/backend/common/variables.py->module->class_definition:KerasVariable->function_definition:... |
keras-team/keras | 19,973 | keras-team__keras-19973 | ['19769'] | 10a008fac10e2eb7dd343c128cbf2e0f971fa993 | diff --git a/keras/src/layers/attention/multi_head_attention.py b/keras/src/layers/attention/multi_head_attention.py
--- a/keras/src/layers/attention/multi_head_attention.py
+++ b/keras/src/layers/attention/multi_head_attention.py
@@ -210,6 +210,21 @@ def build(
key: Optional shape of the `key` tensor.
... | diff --git a/keras/src/layers/attention/multi_head_attention_test.py b/keras/src/layers/attention/multi_head_attention_test.py
--- a/keras/src/layers/attention/multi_head_attention_test.py
+++ b/keras/src/layers/attention/multi_head_attention_test.py
@@ -148,6 +148,10 @@ def test_shape_mismatch_error(self, query_shape,... | Inconsistent assertion in keras.layers.MultiHeadAttention
I've noticed that depending on what is fed as the key, query and value to the keras.layers.MultiHeadAttention the assertion query_shape==value_shape is only _sometimes_ activated.
Minimal working example (no assertion error):
```
`import os`
`os.environ["K... | null | 2024-07-11 01:00:28+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /testbed
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy the entire repository
COPY . .
# ... | ['keras/src/layers/attention/multi_head_attention_test.py:MultiHeadAttentionTest:test_compute_output_shape_without_key_same_proj', 'keras/src/layers/attention/multi_head_attention_test.py:MultiHeadAttentionTest:test_basics', 'keras/src/layers/attention/multi_head_attention_test.py:MultiHeadAttentionTest:test_high_dim_a... | ['keras/src/layers/attention/multi_head_attention_test.py:MultiHeadAttentionTest:test_shape_mismatch_error_key_value_dim_mismatch', 'keras/src/layers/attention/multi_head_attention_test.py:MultiHeadAttentionTest:test_shape_mismatch_error_query_value_dim_mismatch', 'keras/src/layers/attention/multi_head_attention_test.p... | null | python -m pytest /testbed/keras/src/layers/attention/multi_head_attention_test.py -v --junitxml=test-results.xml | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["keras/src/layers/attention/multi_head_attention.py->module->class_definition:MultiHeadAttention->function_definition:build"] |
keras-team/keras | 20,002 | keras-team__keras-20002 | ['19982'] | 576daec845cbc83cebb040e018ba9fdae1902738 | diff --git a/keras/src/models/sequential.py b/keras/src/models/sequential.py
--- a/keras/src/models/sequential.py
+++ b/keras/src/models/sequential.py
@@ -137,6 +137,12 @@ def _maybe_rebuild(self):
if isinstance(self._layers[0], InputLayer) and len(self._layers) > 1:
input_shape = self._layers[0].... | diff --git a/keras/src/models/sequential_test.py b/keras/src/models/sequential_test.py
--- a/keras/src/models/sequential_test.py
+++ b/keras/src/models/sequential_test.py
@@ -150,6 +150,58 @@ def test_basic_flow_as_a_submodel(self):
y = model(x)
self.assertEqual(y.shape, (2, 3, 4))
+ def test_bas... | "ValueError: Undefined shapes are not supported." when calling model.call()
hello everybody.
I'm having trouble creating a Siamese network class, which extends keras.Model , from a function that returns the same model. My knowledge about [keras.Model](https://keras.io/api/models/model/) isn't good, so I don't know i... | Got the same Error,


Hey @jpeg-souza
you can try the following:
```python
import keras
from keras import ops
def euclidean_di... | 2024-07-17 03:10:57+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /testbed
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy the entire repository
COPY . .
# ... | ['keras/src/models/sequential_test.py:SequentialTest:test_compute_output_shape', 'keras/src/models/sequential_test.py:SequentialTest:test_functional_properties', 'keras/src/models/sequential_test.py:SequentialTest:test_legacy_flow_with_input_shape', 'keras/src/models/sequential_test.py:SequentialTest:test_list_inputs',... | ['keras/src/models/sequential_test.py:SequentialTest:test_basic_flow_with_functional_model_as_first_layer', 'keras/src/models/sequential_test.py:SequentialTest:test_basic_flow_with_sequential_model_as_first_layer'] | null | python -m pytest /testbed/keras/src/models/sequential_test.py -v --junitxml=test-results.xml | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["keras/src/utils/summary_utils.py->module->function_definition:format_layer_shape", "keras/src/models/sequential.py->module->class_definition:Sequential->function_definition:_maybe_rebuild"] |
keras-team/keras | 20,008 | keras-team__keras-20008 | ['19991', '19991'] | 0ed820f5649bcb27531d73cfc023763712fc8bf9 | diff --git a/keras/src/backend/tensorflow/nn.py b/keras/src/backend/tensorflow/nn.py
--- a/keras/src/backend/tensorflow/nn.py
+++ b/keras/src/backend/tensorflow/nn.py
@@ -237,28 +237,25 @@ def _conv():
dilations=dilation_rate,
)
- # Reason for making this function is in Tensorflow, `groups > ... | diff --git a/keras/src/ops/nn_test.py b/keras/src/ops/nn_test.py
--- a/keras/src/ops/nn_test.py
+++ b/keras/src/ops/nn_test.py
@@ -1479,6 +1479,19 @@ def test_conv_3d(self, strides, padding, data_format):
)
self.assertAllClose(outputs, expected, rtol=1e-5, atol=1e-5)
+ # Test for tracing erro... | Regression bug when using 3D convolution with channels_first on GPU
The following code stopped working after release 3.3.3 when running on GPU and using `run_eagerly=False`
```python
import keras
import numpy as np
# 3D input with channels_first
model_input = keras.Input(shape=(1, 10, 10, 10))
# (None, 1, 10,... | I'm running on Nvidia driver 550.54.15, CUDA version 12.4 and am using a H100XM-80C GPU
I was able to replicate the issue using Keras 3.4.1 on GPU, attaching the Gist for reference
[](https://colab.sandbox.google.com/gist/sachinprasadhs/5cea3254fc749928420f... | 2024-07-18 05:28:29+00:00 | Python | FROM public.ecr.aws/docker/library/python:3.9-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /testbed
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy the entire repository
COPY . .
# ... | ['keras/src/ops/nn_test.py:NNOpsDynamicShapeTest:test_multi_hot_dtype_float32_true', 'keras/src/ops/nn_test.py:NNOpsCorrectnessTest:test_depthwise_conv_2d2', 'keras/src/ops/nn_test.py:NNOpsDynamicShapeTest:test_log_sigmoid', 'keras/src/ops/nn_test.py:NNOpsDtypeTest:test_sigmoid_bfloat16', 'keras/src/ops/nn_test.py:NNOp... | ['keras/src/ops/nn_test.py:NNOpsCorrectnessTest:test_conv_3d2', 'keras/src/ops/nn_test.py:NNOpsCorrectnessTest:test_conv_3d4', 'keras/src/ops/nn_test.py:NNOpsCorrectnessTest:test_conv_3d8', 'keras/src/ops/nn_test.py:NNOpsCorrectnessTest:test_conv_3d10', 'keras/src/ops/nn_test.py:NNOpsCorrectnessTest:test_conv_3d6', 'ke... | null | python -m pytest /testbed/keras/src/ops/nn_test.py -v --junitxml=test-results.xml | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["keras/src/backend/tensorflow/nn.py->module->function_definition:conv"] |
Subsets and Splits
Top Repos by Test Count
Lists the top 1000 repositories by the number of entries, providing a basic count of entries per repository.
Unique Repo Selection
Lists unique repository names from the dataset, providing a basic overview of the repositories present.