Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements #445

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ versions.

| `redcat` | `coola` | `numpy` | `torch` | `python` |
|----------|--------------------|----------------|---------------|---------------|
| `0.0.12` | `>=0.0.20,<0.0.24` | `>=1.22,<1.27` | `>=1.11,<2.1` | `>=3.9,<3.12` |
| `0.0.11` | `>=0.0.20,<0.0.24` | `>=1.22,<1.27` | `>=1.11,<2.1` | `>=3.9,<3.12` |
| `0.0.10` | `>=0.0.20,<0.0.24` | `>=1.22,<1.27` | `>=1.11,<2.1` | `>=3.9,<3.12` |
| `0.0.9` | `>=0.0.20,<0.0.24` | `>=1.22,<1.27` | `>=1.11,<2.1` | `>=3.9,<3.12` |
| `0.0.8` | `>=0.0.20,<0.0.21` | `>=1.21,<1.26` | `>=1.11,<2.1` | `>=3.9,<3.12` |

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "redcat"
version = "0.0.11"
version = "0.0.12a0"
description = "A library to manipulate batches of examples"
readme = "README.md"
authors = ["Thibaut Durand <durand.tibo+gh@gmail.com>"]
Expand Down
4 changes: 2 additions & 2 deletions src/redcat/tensorseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def permute_along_seq(self, permutation: Sequence[int] | Tensor) -> BatchedTenso
Args:
----
permutation (sequence or ``torch.Tensor`` of type long
and shape ``(dimension,)``): Specifies the permutation
and shape ``(seq_len,)``): Specifies the permutation
to use on the data. The dimension of the permutation
input should be compatible with the shape of the data.

Expand All @@ -543,7 +543,7 @@ def permute_along_seq_(self, permutation: Sequence[int] | Tensor) -> None:
Args:
----
permutation (sequence or ``torch.Tensor`` of type long
and shape ``(dimension,)``): Specifies the permutation
and shape ``(seq_len,)``): Specifies the permutation
to use on the data. The dimension of the permutation
input should be compatible with the shape of the data.

Expand Down