diff --git a/docs/source/handling_advanced_stypes/handle_text.rst b/docs/source/handling_advanced_stypes/handle_text.rst index af470416..1328eff2 100644 --- a/docs/source/handling_advanced_stypes/handle_text.rst +++ b/docs/source/handling_advanced_stypes/handle_text.rst @@ -345,7 +345,7 @@ Next we need to specify the text model embedding with `LoRA bool: return False if self_feat.shape != other_feat.shape: return False - if not torch.allclose(self_feat, other_feat): + if not torch.allclose(self_feat, other_feat, equal_nan=True): return False elif isinstance(self_feat, MultiNestedTensor): if not isinstance(other_feat, MultiNestedTensor):