arrayfire / arrayfire/arrayfire-python

Adding squeeze

Aberta
#161 4 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
422
Forks
63
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Would be nice to have a wrapper for squeeze.

Without squeeze, matmul usage is quite limited because if will fail for all slices of bigger matrices. Example:

```
import arrayfire as af
x = af.constant(0, 10, 5, 5, dtype=af.Dtype.f64)
af.matmul(x[0,:,:],x[1,:,:]) # will fail because only matrices with two dimensions are allowed
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

No files or tests are named. Start by locating the Python wrapper for matmul and the binding pattern for ArrayFire's squeeze operation, then reproduce the provided af.constant and af.matmul example. Done means a squeeze wrapper is available and the sliced arrays can be used successfully with matmul.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
api
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

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