Skip to content

Commit

Permalink
Updated layers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mobley-trent committed Aug 25, 2023
1 parent adf548e commit 53ef379
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion ivy_models/regnet/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _scale(self, input: ivy.Array) -> ivy.Array:
scale = self.fc2(scale)
return self.scale_activation(scale)

def forward(self, input: ivy.Array) -> ivy.Array:
def _forward(self, input: ivy.Array) -> ivy.Array:
scale = self._scale(input)
return scale * input

Expand Down
3 changes: 0 additions & 3 deletions scratch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from ivy_models.helpers import load_torch_weights
from ivy_models.regnet.regnet import RegNet
from ivy_models.regnet.layers import BlockParams
import ivy

ivy.set_backend("torch")

# num_classes = 1000
# dropout = 0.5
Expand Down

0 comments on commit 53ef379

Please sign in to comment.