allenai / allenai/tango

Enable torch.Tensor input args from config

Aberta
#376 0 comentários 0 reações 0 responsáveis Ver no GitHub
feature request
Linguagem predominante
Python
Estrelas
572
Forks
55
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### 🚀 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_

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.