Skip to content

Commit 1b66ea9

Browse files
tolgacangozdacorvo
authored andcommitted
Add text type
1 parent ba8ff36 commit 1b66ea9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quanto/library/ext/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The operations are defined in `library/ops.py`.
1414

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

17-
```
17+
```python
1818
@torch.library.impl("quanto_ext::unpack", ["CPU", "CUDA"])
1919
def unpack(packed: torch.Tensor, bits: int) -> torch.Tensor:
2020
return ext().unpack(t, bits)

quanto/library/python/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The operations are defined in `library/ops.py`.
88

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

11-
```
11+
```python
1212
@torch.library.impl("quanto_py::unpack", "default")
1313
def unpack(packed: torch.Tensor, bits: int) -> torch.Tensor:
1414
...

0 commit comments

Comments
 (0)