Skip to content

Commit

Permalink
Add text type
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgacangoz authored and dacorvo committed Feb 14, 2024
1 parent ba8ff36 commit 1b66ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quanto/library/ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The operations are defined in `library/ops.py`.

To provide an implementation for specific device types, use the following syntax:

```
```python
@torch.library.impl("quanto_ext::unpack", ["CPU", "CUDA"])
def unpack(packed: torch.Tensor, bits: int) -> torch.Tensor:
return ext().unpack(t, bits)
Expand Down
2 changes: 1 addition & 1 deletion quanto/library/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The operations are defined in `library/ops.py`.

To provide an implementation for an operation, use the following syntax:

```
```python
@torch.library.impl("quanto_py::unpack", "default")
def unpack(packed: torch.Tensor, bits: int) -> torch.Tensor:
...
Expand Down

0 comments on commit 1b66ea9

Please sign in to comment.