arrayfire / arrayfire/arrayfire-python

Adding squeeze

Abierto
#161 4 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.