Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to_numpy #1415

Closed
davidlee1102 opened this issue Jun 12, 2022 · 1 comment · Fixed by #1416
Closed

to_numpy #1415

davidlee1102 opened this issue Jun 12, 2022 · 1 comment · Fixed by #1416
Labels
Function Reformatting Reformat all Ivy functions in accordance with the latest coding style in the contributor guide

Comments

@davidlee1102
Copy link
Contributor

"""Converts an array into a numpy array.

Parameters
----------
x
    input array

Returns
-------
ret
    a numpy array copying all the element of the array ``x``.

Examples
--------
>>> x = ivy.array([-1, 0, 1])
>>> y = ivy.to_numpy(x)
>>> print(y)
[-1 0 1]

>>> print(type(y))
<class 'numpy.ndarray'>

"""
@davidlee1102 davidlee1102 mentioned this issue Jun 12, 2022
58 tasks
@davidlee1102
Copy link
Contributor Author

#1416

@vedpatwardhan vedpatwardhan linked a pull request Jun 12, 2022 that will close this issue
vedpatwardhan added a commit that referenced this issue Jun 13, 2022
Co-authored-by: vedpatwardhan <[email protected]>
@1Doomdie1 1Doomdie1 added Single Function Function Reformatting Reformat all Ivy functions in accordance with the latest coding style in the contributor guide labels Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Function Reformatting Reformat all Ivy functions in accordance with the latest coding style in the contributor guide
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants