Add nn.Module as superclass (#4533)
This commit is contained in:
@@ -149,7 +149,7 @@ MMBT_INPUTS_DOCSTRING = r""" Inputs:
|
|||||||
MMBT_START_DOCSTRING,
|
MMBT_START_DOCSTRING,
|
||||||
MMBT_INPUTS_DOCSTRING,
|
MMBT_INPUTS_DOCSTRING,
|
||||||
)
|
)
|
||||||
class MMBTModel(ModuleUtilsMixin):
|
class MMBTModel(nn.Module, ModuleUtilsMixin):
|
||||||
r"""
|
r"""
|
||||||
Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs:
|
Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs:
|
||||||
**last_hidden_state**: ``torch.FloatTensor`` of shape ``(batch_size, sequence_length, hidden_size)``
|
**last_hidden_state**: ``torch.FloatTensor`` of shape ``(batch_size, sequence_length, hidden_size)``
|
||||||
|
|||||||
Reference in New Issue
Block a user