Spaces:
Sleeping
Sleeping
File size: 252 Bytes
209bb28 |
1 2 3 4 5 6 7 8 9 10 11 12 |
# decorators.py
import spaces
def gpu_decorator(duration=100):
def decorator(func):
@spaces.GPU(duration=duration)
def wrapper(*args, **kwargs):
return func(*args, **kwargs)
return wrapper
return decorator
|