Skip to content

Commit 7364932

Browse files
committed
Tweaks to examples in dpctl enum docstrings
Remove unnecessary `print()` of the enums
1 parent 6879275 commit 7364932

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpctl/enum_types.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class backend_type(Enum):
7676
7777
# create a SYCL device with OpenCL backend using filter selector
7878
d = dpctl.SyclDevice("opencl")
79-
print(d.backend)
79+
d.backend
8080
# Possible output: <backend_type.opencl: 5>
8181
"""
8282

@@ -101,7 +101,7 @@ class event_status_type(Enum):
101101
102102
import dpctl
103103
ev = dpctl.SyclEvent()
104-
print(ev.execution_status )
104+
ev.execution_status
105105
# Possible output: <event_status_type.complete: 4>
106106
"""
107107

@@ -125,7 +125,7 @@ class global_mem_cache_type(Enum):
125125
126126
import dpctl
127127
dev = dpctl.SyclDevice()
128-
print(dev.global_mem_cache_type)
128+
dev.global_mem_cache_type
129129
# Possible output: <global_mem_cache_type.read_write: 4>
130130
"""
131131

0 commit comments

Comments
 (0)