Skip to content

Commit

Permalink
scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 14, 2024
1 parent 79b6ac8 commit ba5ea3b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions gotennet_pytorch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from gotennet_pytorch import gotennet
20 changes: 20 additions & 0 deletions gotennet_pytorch/gotennet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import torch
import torch.nn.functional as F
from torch.nn import Module, ModuleList

# helper functions

def exists(v):
return v is not None

def default(v, d):
return v if exists(v) else d

# main class

class GotenNet(Module):
def __init__(self):
super().__init__()

def forward(self, x):
return x
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ dev-dependencies = [
"pytest-cov>=5.0.0",
]

[tool.pytest.ini_options]
pythonpath = ["."]

[tool.hatch.metadata]
allow-direct-references = true

Expand Down
3 changes: 3 additions & 0 deletions tests/test_gotennet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

from gotennet_pytorch.gotennet import GotenNet

def test_equivariant():
model = GotenNet()
assert True

0 comments on commit ba5ea3b

Please sign in to comment.