Shortcuts

Source code for quaterion_models.heads.empty_head

import torch

from quaterion_models.heads.encoder_head import EncoderHead


[docs]class EmptyHead(EncoderHead): """Returns input embeddings without any modification""" def __init__(self, input_embedding_size: int, dropout: float = 0.0): super(EmptyHead, self).__init__(input_embedding_size, dropout=dropout) @property def output_size(self) -> int: return self.input_embedding_size
[docs] def transform(self, input_vectors: torch.Tensor) -> torch.Tensor: return input_vectors

Qdrant

Learn more about Qdrant vector search project and ecosystem

Discover Qdrant

Similarity Learning

Explore practical problem solving with Similarity Learning

Learn Similarity Learning

Community

Find people dealing with similar problems and get answers to your questions

Join Community