fix formating

This commit is contained in:
Chowdhury, Hisham 2025-02-06 12:23:33 -08:00
parent b4c7540fbc
commit 75ec851324
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class CLIPTextModel_(torch.nn.Module):
causal_mask = torch.empty(x.shape[1], x.shape[1], dtype=x.dtype, device=x.device).triu_(1)
else:
causal_mask = torch.empty(x.shape[1], x.shape[1], dtype=x.dtype, device=x.device).fill_(float("-inf")).triu_(1)
if mask is not None:
mask += causal_mask
else:

View File

@ -997,7 +997,7 @@ def is_directml_enabled():
global directml_enabled
if directml_enabled:
return True
return False
def should_use_fp16(device=None, model_params=0, prioritize_performance=True, manual_cast=False):