Update _utils.py

This commit is contained in:
Daniel Han 2024-11-25 21:59:40 -08:00
commit a62651ce69

View file

@ -1178,8 +1178,8 @@ LOGITS_ERROR_STRING = \
def raise_logits_error(*args, **kwargs): raise NotImplementedError(LOGITS_ERROR_STRING)
class EmptyLogits:
def __init__(self): return
__getitem__ = raise_logits_error
__getattr__ = raise_logits_error
# __getitem__ = raise_logits_error
# __getattr__ = raise_logits_error
def __repr__(self): return LOGITS_ERROR_STRING
def __str__ (self): return LOGITS_ERROR_STRING
pass