Skip to content

Commit 5649dfb

Browse files
committed
just pin linear attention version
1 parent d3e0486 commit 5649dfb

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

meshgpt_pytorch/data.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
from einops import rearrange, reduce
1515

1616
from beartype.typing import Tuple, List, Callable, Dict
17-
from meshgpt_pytorch.typing import typecheck
18-
19-
from torchtyping import TensorType
17+
from meshgpt_pytorch.typing import typecheck, Float, Int
2018

2119
from pytorch_custom_utils.utils import pad_or_slice_to
2220

@@ -30,8 +28,8 @@ def identity(t):
3028

3129
# constants
3230

33-
Vertices = TensorType['nv', 3, float] # 3 coordinates
34-
Faces = TensorType['nf', 3, int] # 3 vertices
31+
Vertices = Float['nv 3'] # 3 coordinates
32+
Faces = Float['nf 3'] # 3 vertices
3533

3634
# decorator for auto-caching texts -> text embeds
3735

@@ -297,11 +295,11 @@ def __getitem__(self, idx):
297295
# tensor helper functions
298296

299297
def derive_face_edges_from_faces(
300-
faces: TensorType['b', 'nf', 3, int],
298+
faces: Int['b nf 3'],
301299
pad_id = -1,
302300
neighbor_if_share_one_vertex = False,
303301
include_self = True
304-
) -> TensorType['b', 'e', 2, int]:
302+
) -> Int['b e 2']:
305303

306304
is_one_face, device = faces.ndim == 2, faces.device
307305

meshgpt_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.5.12'
1+
__version__ = '1.5.15'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'pytorch-custom-utils>=0.0.9',
3636
'rotary-embedding-torch>=0.6.4',
3737
'sentencepiece',
38-
'taylor-series-linear-attention>=0.1.6',
38+
'taylor-series-linear-attention==0.1.11',
3939
'torch>=2.1',
4040
'torch_geometric',
4141
'tqdm',

0 commit comments

Comments
 (0)