Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen committed Feb 11, 2024
1 parent 93ce456 commit 48e53f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ggml/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class Backend:
def __init__(self, backend: ggml.ggml_backend_t):
self.backend = backend

def alloc_ctx_tensors(self, ctx: Optional[Context] = None):
def alloc_ctx_tensors(self, ctx: Optional[Context] = None) -> "BackendBuffer":
ctx = ctx or Context.current_context()
return ggml.ggml_backend_alloc_ctx_tensors(ctx.context, self.backend)
return BackendBuffer(ggml.ggml_backend_alloc_ctx_tensors(ctx.context, self.backend))

@staticmethod
def cpu():
Expand Down

0 comments on commit 48e53f5

Please sign in to comment.