arrayfire / arrayfire/arrayfire-python
Adding squeeze
- Lenguaje dominante
- Python
- Estrellas
- 422
- Forks
- 63
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100