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