ETC === .. py:module:: topmost.models.dynamic.CFDTM.ETC Module Contents --------------- .. autoapisummary:: topmost.models.dynamic.CFDTM.ETC.ETC .. py:class:: ETC(num_times, temperature, weight_neg, weight_pos) Bases: :py:obj:`torch.nn.Module` .. py:attribute:: num_times .. py:attribute:: weight_neg .. py:attribute:: weight_pos .. py:attribute:: temperature .. py:method:: forward(topic_embeddings) .. py:method:: compute_loss(anchor_feature, contrast_feature, temperature, self_contrast=False, only_pos=False, all_neg=False)