Update _utils.py
This commit is contained in:
parent
27f740375f
commit
92e4d089bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1187,7 +1187,7 @@ pass
|
|||
EMPTY_LOGITS = EmptyLogits()
|
||||
functions = dir(torch.Tensor)
|
||||
for j, function in enumerate(functions):
|
||||
exec(f"def raise_{j}(*args, **kwargs): print({j})", globals(), locals())
|
||||
exec(f"def raise_{j}(*args, **kwargs): print(function, {j})", globals(), locals())
|
||||
try: exec(f"EMPTY_LOGITS.{function} = raise_{j}", globals(), locals())
|
||||
except: continue
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue