Spaces:
Runtime error
Runtime error
File size: 171 Bytes
e71a2ba |
1 2 3 4 5 6 7 8 |
import torch
DUMMY = torch.empty(0) # dummy tensor that replaces empty prompt or adapter parameters
def is_dummy(tensor: torch.Tensor):
return tensor.numel() == 0
|