method
method(*, is_generator=None)Decorator for methods that should be transformed into a Modal Function registered against this class's App.
Usage
@app.cls(cpu=8)
class MyCls:
@modal.method()
def f(self):
...method(*, is_generator=None)Decorator for methods that should be transformed into a Modal Function registered against this class's App.
Usage
@app.cls(cpu=8)
class MyCls:
@modal.method()
def f(self):
...