Skip to content

Commit

Permalink
Correct reference to encode function.
Browse files Browse the repository at this point in the history
  • Loading branch information
avullo committed Sep 17, 2024
1 parent 89736e8 commit 6b23bf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trieste/models/gpflux/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ def __init__(self, model: GPfluxPredictor, num_features: int):
DeepGaussianProcessDecoupledLayer(model, i, num_features)
for i in range(len(model.model_gpflux.f_layers))
]
self._encode = lambda x: x if model.encoder is None else model.encoder.encode(x)

self._encode = lambda x: model.encode(x)

@tf.function
def __call__(self, x: TensorType) -> TensorType:
Expand Down

0 comments on commit 6b23bf7

Please sign in to comment.