Skip to content

Commit

Permalink
use a torch.compile friendly pytree
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 26, 2024
1 parent 49f861f commit 746032b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frame_averaging_pytorch/frame_averaging.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from __future__ import annotations

from random import randrange
from optree import tree_map

import torch
from torch.nn import Module
from torch.utils._pytree import tree_map

from einops import rearrange, repeat, reduce, einsum

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "frame-averaging-pytorch"
version = "0.1.1"
version = "0.1.2"
description = "Frame Averaging"
authors = [
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
Expand All @@ -25,7 +25,6 @@ classifiers=[
dependencies = [
"torch>=2.0",
"einops>=0.8.0",
"optree"
]

[project.urls]
Expand Down

0 comments on commit 746032b

Please sign in to comment.