in neuron_explainer/models/model_component_registry.py [0:0]
def has_no_layers(self) -> bool:
# if True, there is one of this type of weight tensor per model, and the layer index is set
# as None wherever used (these occur at the very beginning or end of the model)
# if False, there is one of this type of weight tensor per layer, and the tensor additionally
# requires a layer index to specify
return self in {
WeightLocationType.EMBEDDING,
WeightLocationType.UNEMBEDDING,
WeightLocationType.POSITION_EMBEDDING,
WeightLocationType.LAYER_NORM_GAIN_FINAL,
WeightLocationType.LAYER_NORM_BIAS_FINAL,
}