|
@@ -96,7 +96,6 @@ class ExpertBackend:
|
|
|
self.update_count = 0
|
|
|
self.examples_processed = 0
|
|
|
|
|
|
- @torch.cuda.amp.autocast()
|
|
|
def forward(self, *inputs: torch.Tensor) -> Tuple[torch.Tensor, ...]:
|
|
|
"""
|
|
|
Apply forward pass to an aggregated batch of requests. Used by Runtime, do not call this manually;
|
|
@@ -122,7 +121,6 @@ class ExpertBackend:
|
|
|
# Note: TaskPool requires function to accept and return a flat tuple of values, we pack/unpack it on client side
|
|
|
return tuple(nested_flatten(outputs))
|
|
|
|
|
|
- @torch.cuda.amp.autocast()
|
|
|
def backward(self, *inputs: torch.Tensor) -> Tuple[torch.Tensor, ...]:
|
|
|
"""
|
|
|
Apply backward pass to an aggregated batch of requests. Used by Runtime, do not call this manually
|