Added extra_repr() to pooler classes to improve debuggability (#44805)
Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
@@ -61,6 +61,12 @@ class SequencePooler(Pooler):
|
||||
self.pooling = pooling
|
||||
self.head = head
|
||||
|
||||
def extra_repr(self) -> str:
|
||||
return (
|
||||
f"pooling={self.pooling.__class__.__name__}, "
|
||||
f"head={self.head.__class__.__name__}"
|
||||
)
|
||||
|
||||
def get_supported_tasks(self) -> Set[PoolingTask]:
|
||||
tasks = set(POOLING_TASKS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user