Update _utils.py
This commit is contained in:
parent
2febe57a51
commit
23716bfb80
1 changed files with 1 additions and 1 deletions
|
|
@ -1186,7 +1186,7 @@ class EmptyLogits:
|
|||
pass
|
||||
EMPTY_LOGITS = EmptyLogits()
|
||||
functions = dir(torch.Tensor)
|
||||
for function in functions:
|
||||
for j, function in enumerate(functions):
|
||||
if function.endswith("_") and len(function) > 2 and function[-2] != "_":
|
||||
print()
|
||||
try: exec(f"EMPTY_LOGITS.{function} = warn_logits_error", globals(), locals())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue