Skip to content

Fix Keras build/call parameter naming in DeepSet layers #587

@SermetPekin

Description

@SermetPekin

The error originates from this line in the Keras source code

On Windows with python 3.10.8
I get the error below.


FAILED tests/test_approximators/test_approximator_standardization/
test_approximator_standardization.py::test_save_and_load[standardize='all'] 
- ValueError: For a `build()` method with more than one argument, all arguments should have a `_shape` suffix
 and match an argument from `call()`. E.g. `build(self, foo_shape, bar_shape)`  
For layer 'EquivariantLayer', Received `build()` argument `self`, which does not end in `_shape`.

I created environment using

uv venv --python 3.10
.venv\Scripts\activate
uv pip install ".[all]"
uv run pytest -m "not slow"  

Mac and Ubuntu pass successfully. (uv run pytest -m 'not slow')

absl-py==2.3.1
accessible-pygments==0.0.5
alabaster==1.0.0
anyio==4.11.0
argon2-cffi==25.1.0
argon2-cffi-bindings==25.1.0
arrow==1.4.0
asttokens==3.0.0
astunparse==1.6.3
async-lru==2.0.5
attrs==25.4.0
babel==2.17.0
bayesflow @ file:///C:/Users/Username/PycharmProjects/bf_orig/bayesflow-main
beautifulsoup4==4.14.2
bleach==6.2.0
cachetools==6.2.1
certifi==2025.10.5
cffi==2.0.0
cfgv==3.4.0
chardet==5.2.0
charset-normalizer==3.4.4
click==8.3.0
colorama==0.4.6
comm==0.2.3
contourpy==1.3.2
coverage==7.11.0
cycler==0.12.1
debugpy==1.8.17
decorator==5.2.1
defusedxml==0.7.1
distlib==0.4.0
docutils==0.21.2
exceptiongroup==1.3.0
execnet==2.1.1
executing==2.2.1
fastjsonschema==2.21.2
filelock==3.20.0
flatbuffers==25.9.23
fonttools==4.60.1
fqdn==1.5.1
gast==0.6.0
google-pasta==0.2.0
greenlet==3.2.4
grpcio==1.76.0
h11==0.16.0
h5py==3.15.1
httpcore==1.0.9
httpx==0.28.1
identify==2.6.15
idna==3.11
imagesize==1.4.1
importlib-metadata==8.7.0
iniconfig==2.3.0
ipykernel==7.0.1
ipython==8.37.0
ipywidgets==8.1.7
isoduration==20.11.0
jedi==0.19.2
jinja2==3.1.6
json5==0.12.1
jsonpointer==3.0.0
jsonschema==4.25.1
jsonschema-specifications==2025.9.1
jupyter==1.1.1
jupyter-cache==1.0.1
jupyter-client==8.6.3
jupyter-console==6.6.3
jupyter-core==5.9.1
jupyter-events==0.12.0
jupyter-lsp==2.3.0
jupyter-server==2.17.0
jupyter-server-terminals==0.5.3
jupyterlab==4.4.10
jupyterlab-pygments==0.3.0
jupyterlab-server==2.28.0
jupyterlab-widgets==3.0.15
keras==3.11.3
kiwisolver==1.4.9
lark==1.3.0
latexcodec==3.0.1
libclang==18.1.1
line-profiler==5.0.0
markdown==3.9
markdown-it-py==3.0.0
markupsafe==3.0.3
matplotlib==3.10.7
matplotlib-inline==0.2.1
mdit-py-plugins==0.5.0
mdurl==0.1.2
mistune==3.1.4
ml-dtypes==0.5.3
myst-nb==1.3.0
myst-parser==4.0.1
namex==0.1.0
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nest-asyncio==1.6.0
nodeenv==1.9.1
notebook==7.4.7
notebook-shim==0.2.4
numpy==1.26.4
numpydoc==1.9.0
opt-einsum==3.4.0
optree==0.17.0
overrides==7.7.0
packaging==25.0
pandas==2.3.3
pandocfilters==1.5.1
parso==0.8.5
pillow==12.0.0
pip==22.2.2
platformdirs==4.5.0
pluggy==1.6.0
pre-commit==4.3.0
prometheus-client==0.23.1
prompt-toolkit==3.0.52
protobuf==6.33.0
psutil==7.1.1
pure-eval==0.2.3
pybtex==0.25.1
pybtex-docutils==1.0.3
pycparser==2.23
pydata-sphinx-theme==0.16.1
pygments==2.19.2
pyparsing==3.2.5
pyproject-api==1.10.0
pytest==8.4.2
pytest-cov==7.0.0
pytest-rerunfailures==16.1
pytest-xdist==3.8.0
python-dateutil==2.9.0.post0
python-json-logger==4.0.0
pytz==2025.2
pywinpty==3.0.2
pyyaml==6.0.3
pyzmq==27.1.0
referencing==0.37.0
requests==2.32.5
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rfc3987-syntax==1.1.0
rich==14.2.0
rpds-py==0.28.0
ruff==0.14.2
scipy==1.15.3
seaborn==0.13.2
send2trash==1.8.3
setuptools==63.2.0
six==1.17.0
sniffio==1.3.1
snowballstemmer==2.2.0
soupsieve==2.8
sphinx==8.1.3
sphinx-design==0.6.1
sphinx-polyversion==1.1.0
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-bibtex==2.6.5
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
sqlalchemy==2.0.44
stack-data==0.6.3
tabulate==0.9.0
tensorboard==2.20.0
tensorboard-data-server==0.7.2
tensorflow==2.20.0
termcolor==3.1.0
terminado==0.18.1
tinycss2==1.4.0
tomli==2.3.0
tornado==6.5.2
tox==4.31.0
tqdm==4.67.1
traitlets==5.14.3
typing-extensions==4.15.0
tzdata==2025.2
uri-template==1.3.0
urllib3==2.5.0
virtualenv==20.35.3
wcwidth==0.2.14
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.9.0
werkzeug==3.1.3
wheel==0.45.1
widgetsnbextension==4.0.14
wrapt==2.0.0
zipp==3.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions