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