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 activation 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 activation tensor per layer, and the tensor additionally
# requires a layer index to specify
return self in {
ActivationLocationType.RESID_POST_EMBEDDING,
ActivationLocationType.RESID_FINAL_LAYER_NORM_SCALE,
ActivationLocationType.RESID_POST_FINAL_LAYER_NORM,
ActivationLocationType.LOGITS,
}