terminator.models.layers.gvp.Dropout¶
- class terminator.models.layers.gvp.Dropout(drop_rate)[source]¶
Bases:
ModuleCombined dropout for tuples (s, V). Takes tuples (s, V) as input and as output.
- __init__(drop_rate)[source]¶
Initializes internal Module state, shared by both nn.Module and ScriptModule.
Methods
__init__(drop_rate)Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(x)- param x:
tuple (s, V) of torch.Tensor,
Attributes
T_destinationalias of TypeVar('T_destination', bound=
Mapping[str,Tensor])dump_patchesThis allows better BC support for
load_state_dict().