Fix SAM3 presence logits clamp being a no-op (#24213)

This commit is contained in:
Mohammed Yasin 2026-04-13 19:00:06 +06:00 committed by GitHub
parent 117accf360
commit 1bf46217d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -522,7 +522,7 @@ class TransformerDecoder(nn.Module):
# clamp to mitigate numerical issues
if self.clamp_presence_logits:
intermediate_layer_presence_logits.clamp(
intermediate_layer_presence_logits.clamp_(
min=-self.clamp_presence_logit_max_val,
max=self.clamp_presence_logit_max_val,
)