Fix tapas scatter (#20149)
* First draft * Remove scatter dependency * Add require_torch * update vectorized sum test, add clone call * remove artifacts * fix style * fix style v2 * remove "scatter" mentions from the code base * fix isort error Co-authored-by: Niels Rogge <nielsrogge@Nielss-MacBook-Pro.local> Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f711d683b5
commit
78a471ff71
@@ -69,8 +69,7 @@ To summarize:
|
||||
|
||||
<frameworkcontent>
|
||||
<pt>
|
||||
Initializing a model with a pre-trained base and randomly initialized classification heads from the hub can be done as shown below. Be sure to have installed the
|
||||
[torch-scatter](https://github.com/rusty1s/pytorch_scatter) dependency:
|
||||
Initializing a model with a pre-trained base and randomly initialized classification heads from the hub can be done as shown below.
|
||||
|
||||
```py
|
||||
>>> from transformers import TapasConfig, TapasForQuestionAnswering
|
||||
|
||||
Reference in New Issue
Block a user