Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Jul 27, 2024
1 parent 701996a commit 6cd6442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angle_emb/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ def evaluate(self, data: Dataset, batch_size: int = 32, metric: str = 'spearman_
def truncate_layer(self, layer_index: int):
""" truncate layer
:param layer_index: int. layer index to be truncated.
:param layer_index: int. layers after layer_index will be truncated.
:return: self
"""
if len(self.backbone.encoder.layer) < layer_index:
Expand Down

0 comments on commit 6cd6442

Please sign in to comment.