GeneralizedLoss =============== .. currentmodule:: lib.model.losses.loss .. autoclass:: GeneralizedLoss :show-inheritance: .. rubric:: Attributes Summary .. autosummary:: ~GeneralizedLoss.T_destination ~GeneralizedLoss.call_super_init ~GeneralizedLoss.dump_patches .. rubric:: Methods Summary .. autosummary:: ~GeneralizedLoss.__call__ ~GeneralizedLoss.add_module ~GeneralizedLoss.apply ~GeneralizedLoss.bfloat16 ~GeneralizedLoss.buffers ~GeneralizedLoss.children ~GeneralizedLoss.compile ~GeneralizedLoss.cpu ~GeneralizedLoss.cuda ~GeneralizedLoss.double ~GeneralizedLoss.eval ~GeneralizedLoss.extra_repr ~GeneralizedLoss.float ~GeneralizedLoss.forward ~GeneralizedLoss.get_buffer ~GeneralizedLoss.get_extra_state ~GeneralizedLoss.get_parameter ~GeneralizedLoss.get_submodule ~GeneralizedLoss.half ~GeneralizedLoss.ipu ~GeneralizedLoss.load_state_dict ~GeneralizedLoss.modules ~GeneralizedLoss.mtia ~GeneralizedLoss.named_buffers ~GeneralizedLoss.named_children ~GeneralizedLoss.named_modules ~GeneralizedLoss.named_parameters ~GeneralizedLoss.parameters ~GeneralizedLoss.register_backward_hook ~GeneralizedLoss.register_buffer ~GeneralizedLoss.register_forward_hook ~GeneralizedLoss.register_forward_pre_hook ~GeneralizedLoss.register_full_backward_hook ~GeneralizedLoss.register_full_backward_pre_hook ~GeneralizedLoss.register_load_state_dict_post_hook ~GeneralizedLoss.register_load_state_dict_pre_hook ~GeneralizedLoss.register_module ~GeneralizedLoss.register_parameter ~GeneralizedLoss.register_state_dict_post_hook ~GeneralizedLoss.register_state_dict_pre_hook ~GeneralizedLoss.requires_grad_ ~GeneralizedLoss.set_extra_state ~GeneralizedLoss.set_submodule ~GeneralizedLoss.share_memory ~GeneralizedLoss.state_dict ~GeneralizedLoss.to ~GeneralizedLoss.to_empty ~GeneralizedLoss.train ~GeneralizedLoss.type ~GeneralizedLoss.xpu ~GeneralizedLoss.zero_grad .. rubric:: Attributes Documentation .. autoattribute:: T_destination .. autoattribute:: call_super_init .. autoattribute:: dump_patches .. rubric:: Methods Documentation .. automethod:: __call__ .. automethod:: add_module .. automethod:: apply .. automethod:: bfloat16 .. automethod:: buffers .. automethod:: children .. automethod:: compile .. automethod:: cpu .. automethod:: cuda .. automethod:: double .. automethod:: eval .. automethod:: extra_repr .. automethod:: float .. automethod:: forward .. automethod:: get_buffer .. automethod:: get_extra_state .. automethod:: get_parameter .. automethod:: get_submodule .. automethod:: half .. automethod:: ipu .. automethod:: load_state_dict .. automethod:: modules .. automethod:: mtia .. automethod:: named_buffers .. automethod:: named_children .. automethod:: named_modules .. automethod:: named_parameters .. automethod:: parameters .. automethod:: register_backward_hook .. automethod:: register_buffer .. automethod:: register_forward_hook .. automethod:: register_forward_pre_hook .. automethod:: register_full_backward_hook .. automethod:: register_full_backward_pre_hook .. automethod:: register_load_state_dict_post_hook .. automethod:: register_load_state_dict_pre_hook .. automethod:: register_module .. automethod:: register_parameter .. automethod:: register_state_dict_post_hook .. automethod:: register_state_dict_pre_hook .. automethod:: requires_grad_ .. automethod:: set_extra_state .. automethod:: set_submodule .. automethod:: share_memory .. automethod:: state_dict .. automethod:: to .. automethod:: to_empty .. automethod:: train .. automethod:: type .. automethod:: xpu .. automethod:: zero_grad