Skip to content

Commit

Permalink
chore: 🚀 Add new functions to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoadesScholar committed Apr 16, 2024
1 parent f74d9c0 commit 43a4620
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 7 additions & 0 deletions src/leibnetz/nets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from .attentive_scalenet import build_attentive_scale_net
from .scalenet import build_scale_net
from .unet import build_unet
from .bio import (
convert_to_bio,
convert_to_backprop,
HebbsRule,
KrotovsRule,
OjasRule,
)

# from .resnet import build_resnet
8 changes: 0 additions & 8 deletions src/leibnetz/nets/bio.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,3 @@ def convert_to_backprop(model: LeibNet):


# %%
from leibnetz.nets import build_unet as leibnetz_unet

model = convert_to_bio(leibnetz_unet(), KrotovsRule(), learning_rate=0.1)
inputs = model.get_example_inputs(device="cuda")
model = model.to("cuda")
# %%
outputs = model(inputs)
# %%

0 comments on commit 43a4620

Please sign in to comment.