Skip to content

Commit

Permalink
add pyi file (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ver217 authored Jul 5, 2022
1 parent b14800a commit 738a0c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions colo_nvme/_C/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from torch import Tensor
from typing import Callable, Optional


class Offloader:
def __init__(self, filename: str, n_entries: int, backend: str = 'uring') -> None: ...
def write(self, tensor: Tensor, key: str, callback: Optional[Callable[[], None]] = None) -> None: ...
def read(self, tensor: Tensor, key: str, callback: Optional[Callable[[], None]] = None) -> None: ...
def sync_write_events(self) -> None: ...
def sync_read_events(self) -> None: ...
def synchronize(self) -> None: ...

0 comments on commit 738a0c0

Please sign in to comment.