allenai / allenai/tango

Enable torch.Tensor input args from config

Aperta
#376 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature request
Lingua principale
Python
Stelle
572
Fork
55
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 🚀 The feature, motivation and pitch

If an object has an input argument of type `torch.Tensor` it currently cannot be constructed from jsonnet configs since the array-type from jsonnet is parsed into a python list.
Ideally the `FromParams` class could upgrade `List` to `Tensor` when constructing the object from the config.

### Alternatives

_No response_

### Additional context

_No response_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.