Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d-li14/ghostnet.pytorch
/ functions
Functions
12 in github.com/d-li14/ghostnet.pytorch
⨍
Functions
12
◇
Types & classes
4
↓ 4 callers
Function
_make_divisible
This function is taken from the original tf repo. It ensures that all layers have a channel number that is divisible by 8 It can be seen
ghostnet.py:15
↓ 3 callers
Method
__init__
(self, channel, reduction=4)
ghostnet.py:32
↓ 2 callers
Function
depthwise_conv
(inp, oup, kernel_size=3, stride=1, relu=False)
ghostnet.py:48
↓ 1 callers
Method
_initialize_weights
(self)
ghostnet.py:162
Method
__init__
(self, inp, oup, kernel_size=1, ratio=2, dw_size=3, stride=1, relu=True)
ghostnet.py:56
Method
__init__
(self, inp, hidden_dim, oup, kernel_size, stride, use_se)
ghostnet.py:82
Method
__init__
(self, cfgs, num_classes=1000, width_mult=1.)
ghostnet.py:111
Method
forward
(self, x)
ghostnet.py:40
Method
forward
(self, x)
ghostnet.py:74
Method
forward
(self, x)
ghostnet.py:106
Method
forward
(self, x)
ghostnet.py:155
Function
ghostnet
Constructs a GhostNet model
ghostnet.py:171