Swish ===== .. currentmodule:: lib.model.layers .. autoclass:: Swish :show-inheritance: :noindex: .. rubric:: Attributes Summary .. autosummary:: ~Swish.T_destination ~Swish.call_super_init ~Swish.compute_dtype ~Swish.dtype ~Swish.dtype_policy ~Swish.dump_patches ~Swish.input ~Swish.input_dtype ~Swish.input_spec ~Swish.losses ~Swish.metrics ~Swish.metrics_variables ~Swish.non_trainable_variables ~Swish.non_trainable_weights ~Swish.output ~Swish.path ~Swish.quantization_mode ~Swish.supports_masking ~Swish.torch_params ~Swish.trainable ~Swish.trainable_variables ~Swish.trainable_weights ~Swish.variable_dtype ~Swish.variables ~Swish.weights .. rubric:: Methods Summary .. autosummary:: ~Swish.__call__ ~Swish.add_loss ~Swish.add_metric ~Swish.add_module ~Swish.add_variable ~Swish.add_weight ~Swish.apply ~Swish.bfloat16 ~Swish.buffers ~Swish.build ~Swish.build_from_config ~Swish.call ~Swish.children ~Swish.compile ~Swish.compute_mask ~Swish.compute_output_shape ~Swish.compute_output_spec ~Swish.count_params ~Swish.cpu ~Swish.cuda ~Swish.double ~Swish.eval ~Swish.extra_repr ~Swish.float ~Swish.forward ~Swish.from_config ~Swish.get_buffer ~Swish.get_build_config ~Swish.get_config ~Swish.get_extra_state ~Swish.get_parameter ~Swish.get_submodule ~Swish.get_weights ~Swish.half ~Swish.ipu ~Swish.load_own_variables ~Swish.load_state_dict ~Swish.modules ~Swish.mtia ~Swish.named_buffers ~Swish.named_children ~Swish.named_modules ~Swish.named_parameters ~Swish.parameters ~Swish.quantize ~Swish.quantized_build ~Swish.quantized_call ~Swish.register_backward_hook ~Swish.register_buffer ~Swish.register_forward_hook ~Swish.register_forward_pre_hook ~Swish.register_full_backward_hook ~Swish.register_full_backward_pre_hook ~Swish.register_load_state_dict_post_hook ~Swish.register_load_state_dict_pre_hook ~Swish.register_module ~Swish.register_parameter ~Swish.register_state_dict_post_hook ~Swish.register_state_dict_pre_hook ~Swish.rematerialized_call ~Swish.requires_grad_ ~Swish.save_own_variables ~Swish.set_extra_state ~Swish.set_submodule ~Swish.set_weights ~Swish.share_memory ~Swish.state_dict ~Swish.stateless_call ~Swish.symbolic_call ~Swish.to ~Swish.to_empty ~Swish.train ~Swish.type ~Swish.xpu ~Swish.zero_grad .. rubric:: Attributes Documentation .. autoattribute:: T_destination .. autoattribute:: call_super_init .. autoattribute:: compute_dtype .. autoattribute:: dtype .. autoattribute:: dtype_policy .. autoattribute:: dump_patches .. autoattribute:: input .. autoattribute:: input_dtype .. autoattribute:: input_spec .. autoattribute:: losses .. autoattribute:: metrics .. autoattribute:: metrics_variables .. autoattribute:: non_trainable_variables .. autoattribute:: non_trainable_weights .. autoattribute:: output .. autoattribute:: path .. autoattribute:: quantization_mode .. autoattribute:: supports_masking .. autoattribute:: torch_params .. autoattribute:: trainable .. autoattribute:: trainable_variables .. autoattribute:: trainable_weights .. autoattribute:: variable_dtype .. autoattribute:: variables .. autoattribute:: weights .. rubric:: Methods Documentation .. automethod:: __call__ .. automethod:: add_loss .. automethod:: add_metric .. automethod:: add_module .. automethod:: add_variable .. automethod:: add_weight .. automethod:: apply .. automethod:: bfloat16 .. automethod:: buffers .. automethod:: build .. automethod:: build_from_config .. automethod:: call .. automethod:: children .. automethod:: compile .. automethod:: compute_mask .. automethod:: compute_output_shape .. automethod:: compute_output_spec .. automethod:: count_params .. automethod:: cpu .. automethod:: cuda .. automethod:: double .. automethod:: eval .. automethod:: extra_repr .. automethod:: float .. automethod:: forward .. automethod:: from_config .. automethod:: get_buffer .. automethod:: get_build_config .. automethod:: get_config .. automethod:: get_extra_state .. automethod:: get_parameter .. automethod:: get_submodule .. automethod:: get_weights .. automethod:: half .. automethod:: ipu .. automethod:: load_own_variables .. automethod:: load_state_dict .. automethod:: modules .. automethod:: mtia .. automethod:: named_buffers .. automethod:: named_children .. automethod:: named_modules .. automethod:: named_parameters .. automethod:: parameters .. automethod:: quantize .. automethod:: quantized_build .. automethod:: quantized_call .. 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:: rematerialized_call .. automethod:: requires_grad_ .. automethod:: save_own_variables .. automethod:: set_extra_state .. automethod:: set_submodule .. automethod:: set_weights .. automethod:: share_memory .. automethod:: state_dict .. automethod:: stateless_call .. automethod:: symbolic_call .. automethod:: to .. automethod:: to_empty .. automethod:: train .. automethod:: type .. automethod:: xpu .. automethod:: zero_grad