Skip to content

Commit

Permalink
Renamed dpctl.memory.create_MemoryUSM to as_usm_memory
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed May 15, 2021
1 parent ea0b571 commit 4eac942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dpctl/memory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
MemoryUSMDevice,
MemoryUSMHost,
MemoryUSMShared,
create_MemoryUSM,
as_usm_memory,
)

__all__ = [
"MemoryUSMDevice",
"MemoryUSMHost",
"MemoryUSMShared",
"create_MemoryUSM",
"as_usm_memory",
]
4 changes: 2 additions & 2 deletions dpctl/memory/_memory.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,9 @@ cdef class MemoryUSMDevice(_Memory):
)


def create_MemoryUSM(obj):
def as_usm_memory(obj):
"""
create_MemoryUSM(obj)
as_usm_memory(obj)
Converts Python object with `__sycl_usm_array_interface__` property
to one of :class:`.MemoryUSMShared`, :class:`.MemoryUSMDevice`, or
Expand Down

0 comments on commit 4eac942

Please sign in to comment.