Skip to content

add tensorflow as the KERAS_BACKEND for qkerasV3 tests#1499

Open
jmitrevs wants to merge 1 commit into
mainfrom
qkeras3_fix
Open

add tensorflow as the KERAS_BACKEND for qkerasV3 tests#1499
jmitrevs wants to merge 1 commit into
mainfrom
qkeras3_fix

Conversation

@jmitrevs

Copy link
Copy Markdown
Contributor

Description

This should fix the qkeras3 pytests issues introduced with qkeras_v3==1.2

Type of change

QKeras v3 1.2 needs to have the KERAS_BACKEND environment variable set, so this sets it in the CI.

  • Bug fix (non-breaking change that fixes an issue)
  • Other (Specify) - CI

Tests

This is a CI fix so it will only be visible in the CI. Compare with the qkeras3 pytest in #1497.

Checklist

  • I have read the guidelines for contributing.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have installed and run pre-commit on the files I edited or added.
  • I have added tests that prove my fix is effective or that my feature works.

@jmitrevs jmitrevs mentioned this pull request Jun 30, 2026
7 tasks
@calad0i

calad0i commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Sounds like a bug from upstream in qkeras v3 to me. In keras v3, if KERAS_BACKEND is not set, it shall be regarded as tensorflow.

@jmitrevs

Copy link
Copy Markdown
Contributor Author

However, we need a workaround till it is fixed. It seems better to explicitly set it vs to lock the version to an older version of qkeras3.

@calad0i

calad0i commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

I would do version lock in this case

@jmitrevs

Copy link
Copy Markdown
Contributor Author

I don't have a strong preference either way. Let's see what others say. I don't see a particular downside in setting the KERAS_BACKEND explicitly.

@makoeppel

Copy link
Copy Markdown
Contributor

I can set the backend default to tensorflow in qkerasv3.

@makoeppel

Copy link
Copy Markdown
Contributor

I fixed the default backend to tensorflow in qkerasv3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants