Skip to content

Commit

Permalink
[BUFG][ImportError: cannot import name LayerNorm from partially initi…
Browse files Browse the repository at this point in the history
…alized module zeta (most likely due to a circular import) (/usr/local/lib/python3.10/dist-packages/zeta/__init__.py]
  • Loading branch information
Kye committed Jan 11, 2024
1 parent dff736d commit 9f7b97b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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 = "zetascale"
version = "1.6.7"
version = "1.6.9"
description = "Transformers at zeta scales"
authors = ["Zeta Team <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 3 additions & 1 deletion zeta/nn/attention/cross_attention.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import math

import torch
from torch.nn import LayerNorm
import torch.nn.functional as F
from einops import rearrange, repeat
from torch import einsum, nn

from zeta import LayerNorm, default, exists, l2norm
from zeta.utils.main import default, exists, l2norm



class CrossAttention(nn.Module):
Expand Down

0 comments on commit 9f7b97b

Please sign in to comment.