ivy icon indicating copy to clipboard operation
ivy copied to clipboard

`np.dot` frontend

Open mobley-trent opened this issue 1 year ago • 1 comments

Closes #18122

mobley-trent avatar Jun 30 '23 19:06 mobley-trent

@hirwa-nshuti I'm having some trouble with running the tests for this function. All the backends are returning this error trace:

Test result not found for: ./ivy_tests/test_ivy/test_frontends/test_numpy/test_linear_algebra/test_matrix_and_vector_products.py::test_numpy_dot

mobley-trent avatar Jun 30 '23 19:06 mobley-trent

@hirwa-nshuti but I think all the submodules are imported in the __init__ file under ivy.functional.frontends.numpy.linalg. Specifically :

from . import matrix_and_vector_products
from .matrix_and_vector_products import *
from . import norms_and_other_numbers
from .norms_and_other_numbers import *
from . import decompositions
from .decompositions import *
from . import matrix_eigenvalues
from .matrix_eigenvalues import *
from . import solving_equations_and_inverting_matrices
from .solving_equations_and_inverting_matrices import *

mobley-trent avatar Jul 06 '23 18:07 mobley-trent

@hirwa-nshuti but I think all the submodules are imported in the __init__ file under ivy.functional.frontends.numpy.linalg. Specifically :

from . import matrix_and_vector_products
from .matrix_and_vector_products import *
from . import norms_and_other_numbers
from .norms_and_other_numbers import *
from . import decompositions
from .decompositions import *
from . import matrix_eigenvalues
from .matrix_eigenvalues import *
from . import solving_equations_and_inverting_matrices
from .solving_equations_and_inverting_matrices import *

Yeah, they're imported in the np.linalg namespace which limits them to be called as np.fn_name we will need to have an exception of this function to be imported in the numpy namespace😁

fnhirwa avatar Jul 07 '23 06:07 fnhirwa