Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bloodwass/mixout
/ functions
Functions
14 in github.com/bloodwass/mixout
⨍
Functions
14
◇
Types & classes
3
↓ 2 callers
Method
_make_noise
(input:torch.Tensor)
mixout/mixout.py:23
↓ 2 callers
Function
demo
Demos applying Mixout to a pretrained model from Huggingface transformers params: model_name (str): the name of a pretra
example_huggingface.py:17
↓ 1 callers
Method
backward
(ctx, grad_output:torch.Tensor)
mixout/mixout.py:75
↓ 1 callers
Function
main
()
example.py:22
↓ 1 callers
Function
mixout
(input:torch.Tensor, target:Optional["OrderedDict[str, torch.Tensor]"]=None, p:float=0
mixout/functional/__init__.py:7
↓ 1 callers
Function
recursive_setattr
Recursively sets attributes for objects with children. params: obj (any) : the object with children wh
example_huggingface.py:61
↓ 1 callers
Function
replace_layer_for_mixout
Replaces a single layer with the correct layer for use with Mixout. If module is nn.Dropout, replaces it with a Dropout where p = 0.
example_huggingface.py:30
↓ 1 callers
Method
reset_parameters
(self)
mixout/mixlinear.py:48
Method
__init__
(self)
example.py:7
Method
__init__
(self, in_features:int, out_features:int, bias:bool=True,
mixout/mixlinear.py:25
Method
extra_repr
(self)
mixout/mixlinear.py:59
Method
forward
(self, input)
example.py:17
Method
forward
(self, input:torch.Tensor)
mixout/mixlinear.py:55
Method
forward
(cls, ctx, input:torch.Tensor, target:Optional["OrderedDict
mixout/mixout.py:27