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

Added ones, full, empty_like, zeros_like, ones_like and full_like ctors #822

Merged
merged 4 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion dpctl/tensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@
"""

from dpctl.tensor._copy_utils import asnumpy, astype, copy, from_numpy, to_numpy
from dpctl.tensor._ctors import arange, asarray, empty, zeros
from dpctl.tensor._ctors import (
arange,
asarray,
empty,
empty_like,
full,
full_like,
ones,
ones_like,
zeros,
zeros_like,
)
from dpctl.tensor._device import Device
from dpctl.tensor._dlpack import from_dlpack
from dpctl.tensor._manipulation_functions import (
Expand All @@ -46,6 +57,12 @@
"copy",
"empty",
"zeros",
"ones",
"full",
"empty_like",
"zeros_like",
"ones_like",
"full_like",
"flip",
"reshape",
"roll",
Expand Down
Loading