forked from nghielme/hls4ml
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Prerequisites
Please make sure to check off these prerequisites before submitting a bug report.
- Test that the bug appears on the current version of the master branch. Make sure to include the commit hash of the commit you checked out.
- Check that the issue hasn't already been reported, by checking the currently open issues.
- If there are steps to reproduce the problem, make sure to write them down below.
- If relevant, please include the hls4ml project files, which were created directly before and/or after the bug.
Quick summary
Test file test_qkeras.py doesn't run due to a mark on a fixture.
Details
In function convert(..) line 74:
@pytest.fixture
> @pytest.mark.parametrize('strategy', ['latency', 'resource'])
def convert(load_jettagging_model, strategy):Adding a mark to a fixture is deprecated since version 7.4.
Steps to Reproduce
- Clone the hls4ml repository
- Checkout to branch bambu-backend
- Run test_qkeras.py (/test/pytest) with pytest
Expected behavior
Test would run.
Actual behavior
========================================================================================== ERRORS ===========================================================================================
________________________________________________________________________ ERROR collecting test/pytest/test_qkeras.py ________________________________________________________________________
test_qkeras.py:74: in <module>
def convert(load_jettagging_model, strategy):
/home/gamba/apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/_pytest/fixtures.py:1399: in fixture
return fixture_marker(fixture_function)
/home/gamba/apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/_pytest/fixtures.py:1239: in __call__
warnings.warn(MARKED_FIXTURE, stacklevel=2)
E pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
E See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
-------------------------------------------------------------------------------------- Captured stderr --------------------------------------------------------------------------------------
2026-01-14 18:03:52.144409: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2026-01-14 18:03:52.179489: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2026-01-14 18:03:52.179529: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2026-01-14 18:03:52.179554: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2026-01-14 18:03:52.186084: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2026-01-14 18:03:52.186264: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2026-01-14 18:03:52.832257: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
===================================================================================== warnings summary ======================================================================================
../../../../apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/tensorflow/python/framework/dtypes.py:35
/home/gamba/apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/tensorflow/python/framework/dtypes.py:35: DeprecationWarning: ml_dtypes.float8_e4m3b11 is deprecated. Use ml_dtypes.float8_e4m3b11fnuz
from tensorflow.tsl.python.lib.core import pywrap_ml_dtypes
../../../../apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/tensorflow_model_optimization/__init__.py:65
/home/gamba/apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/tensorflow_model_optimization/__init__.py:65: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if (distutils.version.LooseVersion(tf.version.VERSION) <
../../../../apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/tensorflow_model_optimization/__init__.py:66
/home/gamba/apps/miniforge3/envs/bambu-env/lib/python3.10/site-packages/tensorflow_model_optimization/__init__.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
distutils.version.LooseVersion(required_tensorflow_version)):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
ERROR test_qkeras.py - pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================== 3 warnings, 1 error in 2.79s ================================================================================
Optional
Possible fix
Parametrize convert fixture correctly (if possible)
Additional context
Running in a conda environment with following dependencies:
Package Version
----------------------------- -----------------------------
absl-py 1.4.0
alembic 1.18.0
annotated-types 0.7.0
anyio 4.12.1
argon2-cffi 25.1.0
argon2-cffi-bindings 25.1.0
arrow 1.4.0
asttokens 3.0.1
astunparse 1.6.3
async-lru 2.0.5
attrs 25.4.0
babel 2.17.0
backports.zstd 1.3.0
beautifulsoup4 4.14.3
bitarray 3.8.0
bitstring 4.3.1
bleach 6.3.0
blinker 1.9.0
Brotli 1.2.0
cached-property 1.5.2
calmjs.parse 1.3.4
certifi 2026.1.4
certipy 0.2.2
cffi 2.0.0
charset-normalizer 3.4.4
clize 5.0.2
colorama 0.4.6
coloredlogs 15.0.1
comm 0.2.3
contourpy 1.3.2
coverage 7.13.1
cryptography 46.0.3
cycler 0.12.1
da4ml 0.4.1
debugpy 1.8.19
decorator 5.2.1
defusedxml 0.7.1
dm-tree 0.1.9
docutils 0.22.4
exceptiongroup 1.3.1
executing 2.2.1
fastjsonschema 2.21.2
filelock 3.20.3
flatbuffers 25.12.19
fonttools 4.61.1
fqdn 1.5.1
fsspec 2026.1.0
gast 0.7.0
google-auth 2.47.0
google-auth-oauthlib 1.0.0
google-pasta 0.2.0
greenlet 3.3.0
grpcio 1.76.0
h11 0.16.0
h2 4.3.0
h5py 3.15.1
HGQ 0.2.6
hls4ml 1.2.0
hpack 4.1.0
httpcore 1.0.9
httpx 0.28.1
humanfriendly 10.0
hyperframe 6.1.0
idna 3.11
importlib_metadata 8.7.0
iniconfig 2.3.0
ipykernel 7.1.0
ipython 8.38.0
ipywidgets 8.1.8
isoduration 20.11.0
jedi 0.19.2
Jinja2 3.1.6
joblib 1.5.3
json5 0.13.0
jsonpointer 3.0.0
jsonschema 4.26.0
jsonschema-specifications 2025.9.1
jupyter 1.1.1
jupyter_client 8.8.0
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
jupyterhub 5.4.3
jupyterlab 4.5.2
jupyterlab_pygments 0.3.0
jupyterlab_server 2.28.0
jupyterlab_widgets 3.0.16
keras 2.14.0
keras-tuner 1.1.3
kiwisolver 1.4.9
kt-legacy 1.0.5
lark 1.3.1
libclang 18.1.1
llvmlite 0.46.0
Mako 1.3.10
Markdown 3.10
MarkupSafe 3.0.3
matplotlib 3.10.8
matplotlib-inline 0.2.1
mistune 3.2.0
ml-dtypes 0.2.0
mpmath 1.3.0
nbclient 0.10.4
nbconvert 7.16.6
nbformat 5.10.4
nest-asyncio 1.6.0
networkx 3.4.2
notebook 7.5.2
notebook_shim 0.2.4
numba 0.63.1
numpy 1.26.4
nvidia-cublas-cu12 12.8.4.1
nvidia-cuda-cupti-cu12 12.8.90
nvidia-cuda-nvrtc-cu12 12.8.93
nvidia-cuda-runtime-cu12 12.8.90
nvidia-cudnn-cu12 9.10.2.21
nvidia-cufft-cu12 11.3.3.83
nvidia-cufile-cu12 1.13.1.3
nvidia-curand-cu12 10.3.9.90
nvidia-cusolver-cu12 11.7.3.90
nvidia-cusparse-cu12 12.5.8.93
nvidia-cusparselt-cu12 0.7.1
nvidia-nccl-cu12 2.27.5
nvidia-nvjitlink-cu12 12.8.93
nvidia-nvshmem-cu12 3.3.20
nvidia-nvtx-cu12 12.8.90
oauthlib 3.3.1
od 2.0.2
onnx 1.16.1
onnx-ir 0.1.8
onnxruntime 1.23.2
onnxscript 0.5.0
opt_einsum 3.4.0
ortools 9.4.1874
overrides 7.7.0
packaging 25.0
pamela 1.2.0
pandas 2.3.3
pandocfilters 1.5.1
parse 1.6.5
parso 0.8.5
pexpect 4.9.0
pillow 12.1.0
pip 25.3
platformdirs 4.5.1
pluggy 1.6.0
ply 3.11
prometheus_client 0.24.0
prompt_toolkit 3.0.52
protobuf 4.25.8
psutil 7.2.1
ptyprocess 0.7.0
pure_eval 0.2.3
pyasn1 0.6.1
pyasn1_modules 0.4.2
pycparser 2.22
pycurl 7.45.7
pydantic 2.12.5
pydantic_core 2.41.5
pyDigitalWaveTools 1.1
pydot 4.0.1
Pygments 2.19.2
PyJWT 2.10.1
pyparser 1.0
pyparsing 3.3.1
PySocks 1.7.1
pytest 9.0.2
pytest-cov 7.0.0
pytest-randomly 4.0.1
python-dateutil 2.9.0.post0
python-json-logger 2.0.7
pytz 2025.2
PyYAML 6.0.3
pyzmq 27.1.0
QKeras 0.9.0
qonnx 0.4.0.post1.dev222+g6ea382ff0
quantizers 1.2.2
referencing 0.37.0
requests 2.32.5
requests-oauthlib 2.0.0
rfc3339_validator 0.1.4
rfc3986-validator 0.1.1
rfc3987-syntax 1.1.0
rpds-py 0.30.0
rsa 4.9.1
scikit-learn 1.7.2
scipy 1.15.3
seaborn 0.13.2
Send2Trash 2.1.0
setuptools 80.9.0
sigtools 4.0.1
six 1.17.0
soupsieve 2.8.1
SQLAlchemy 2.0.45
stack-data 0.6.3
sympy 1.14.0
tabulate 0.9.0
tensorboard 2.14.1
tensorboard-data-server 0.7.2
tensorflow 2.14.0
tensorflow-estimator 2.14.0
tensorflow-io-gcs-filesystem 0.37.1
tensorflow-model-optimization 0.8.0
termcolor 3.3.0
terminado 0.18.1
threadpoolctl 3.6.0
tinycss2 1.4.0
tomli 2.4.0
toposort 1.10
torch 2.9.1
tornado 6.5.4
tqdm 4.67.1
traitlets 5.14.3
triton 3.5.1
typing_extensions 4.15.0
typing-inspection 0.4.2
tzdata 2025.3
uri-template 1.3.0
urllib3 2.6.3
wcwidth 0.2.14
webcolors 25.10.0
webencodings 0.5.1
websocket-client 1.9.0
Werkzeug 3.1.5
wheel 0.45.1
widgetsnbextension 4.0.15
wrapt 1.14.2
zipp 3.23.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working