Skip to content

Commit

Permalink
Update stochasticskipblock.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez authored Dec 27, 2023
1 parent baaa96b commit eb9606a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/zeta/nn/modules/stochasticskipblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ First, you need to import the necessary module:
import torch
import torch.nn as nn
from torch.nn.functional import relu
from zeta.nn import StochasticSkipBlock
```

Now, you need to define the architecture of the model:
Expand Down Expand Up @@ -125,6 +126,8 @@ This shows how to train the model using StochasticSkipBlock module. Please note,
from torch.optim import SGD
from torch.nn.functional import binary_cross_entropy
import torch.optim as optim
from zeta.nn import StochasticSkipBlock


#initiate model
model = MyModel()
Expand Down

0 comments on commit eb9606a

Please sign in to comment.