• Docs >
  • quaterion_models.heads.gated_head module
Shortcuts

quaterion_models.heads.gated_head module

class GatedHead(input_embedding_size: int, dropout: float = 0.0)[source]

Bases: EncoderHead

Disables or amplifies some components of input embedding.

This layer has minimal amount of trainable parameters and is suitable for even small training sets.

reset_parameters() None[source]
transform(input_vectors: Tensor) Tensor[source]
Parameters:

input_vectors – shape: (batch_size, vector_size)

Returns:

Tensor – (batch_size, vector_size)

property output_size: int
training: bool

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