Skip to content

Commit

Permalink
Catch another tf.keras usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Uri Granta committed Jun 19, 2024
1 parent 08aaaaf commit 3d9143a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"gpflow>=2.9.2",
"numpy<2",
"scipy",
"tensorflow>=2.5.0,<=2.16.1; platform_system!='Darwin' or platform_machine!='arm64'",
"tensorflow>=2.5.0,<2.17; platform_system!='Darwin' or platform_machine!='arm64'",
# NOTE: Support of Apple Silicon MacOS platforms is in an experimental mode
"tensorflow-macos>=2.5.0,<=2.16.1; platform_system=='Darwin' and platform_machine=='arm64'",
"tensorflow-macos>=2.5.0,<2.17; platform_system=='Darwin' and platform_machine=='arm64'",
"tensorflow-probability>=0.13.0,<=0.24",
]

Expand Down
4 changes: 2 additions & 2 deletions tests/gpflux/layers/test_trackable_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
import pytest
import tensorflow as tf
from packaging.version import Version
from tensorflow.keras.layers import Layer

from gpflow import default_float
from gpflow.keras import tf_keras
from gpflow.kernels import RBF, Matern12, Matern52

import gpflux
Expand All @@ -34,7 +34,7 @@ def __init__(self, attributes):
super().__init__()


class UntrackableCompositeLayer(Layer):
class UntrackableCompositeLayer(tf_keras.Layer):
def __init__(self, attributes):
for i, a in enumerate(attributes):
setattr(self, f"var_{i}", a)
Expand Down

0 comments on commit 3d9143a

Please sign in to comment.