Skip to content

Commit 6e3f392

Browse files
fix: wrong parameter name for ClassifHead
1 parent 36cd643 commit 6e3f392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/architecture/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ custom_head = nn.Sequential(
270270
nn.Linear(64, 5)
271271
)
272272

273-
head = ClassificationHead(linear=custom_head)
273+
head = ClassificationHead(net=custom_head)
274274
```
275275

276276
## Complete Architecture
@@ -611,3 +611,4 @@ torchTextClassifiers provides a **component-based pipeline** for text classifica
611611

612612
Ready to build your classifier? Start with {doc}`../getting_started/quickstart`!
613613

614+

0 commit comments

Comments
 (0)