add_module() | Add a child module to the module. See also children() and apply() |
_apply() | |
apply() | Applies a function recursively to every submodule (as returned by children() ). |
bfloat16() | |
buffers() | |
_call_impl() | |
call_super_init | bool object |
children() | See also add_module() |
cpu() | Compare with to() |
cuda() | Moves all model parameters and buffers to the GPU. Compare with cpu() |
double() | |
dump_patches | bool object |
eval() | Put the model in evaluation mode, equivalent to self.train(False) . |
extra_repr() | |
float() | |
forward() | Defines the computation performed at every call. This method should be overridden by all subclasses that inherit from torch.nn.Module . See also register_forward_hook() and register_forward_pre_hook() |
_get_backward_hooks() | |
_get_backward_pre_hooks() | |
get_buffer() | |
get_extra_state() | |
_get_name() | |
get_parameter() | Returns the parameter identified by the given target. |
get_submodule() | |
half() | |
ipu() | |
_load_from_state_dict() | |
load_state_dict() | |
_maybe_warn_non_full_backward_hook() | |
modules() | |
named_buffers() | |
named_children() | Returns an iterator over the immediate children of the module. The iterator returns tuples with the child module's name and the child module itself. See also named_modules() |
_named_members() | |
named_modules() | See also named_children() |
named_parameters() | |
parameters() | Returns an iterator over the module's parameters (typically needed by an optimizer). See also torch.nn.Parameter . |
register_backward_hook() | Deprecated in favor of register_full_backward_hook() |
register_buffer() | |
register_forward_hook() | Registers a hook function which is called every time forward() has computed an output. |
register_forward_pre_hook() | Registers a hook function which is called before forward() in invoked. |
register_full_backward_hook() | Registers a hook function which is called every time the module's gradients are computed. |
register_full_backward_pre_hook() | |
register_load_state_dict_post_hook() | |
_register_load_state_dict_pre_hook() | |
register_module() | |
register_parameter() | |
_register_state_dict_hook() | |
register_state_dict_pre_hook() | |
_replicate_for_data_parallel() | |
requires_grad_() | |
_save_to_state_dict() | |
set_extra_state() | |
share_memory() | |
_slow_forward() | |
state_dict() | |
T_destination | ? |
to() | |
to_empty() | |
train() | See also eval() |
training | A boolean which corresponds to the module's mode (training or evaluation). This member is created (and initialized) in the module's __init__ method. |
type() | |
_version | int object |
xpu() | |
zero_grad() | |