We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043a3fd commit f0d616bCopy full SHA for f0d616b
primitiv/_device.pyx
@@ -37,6 +37,8 @@ cdef class Device:
37
:rtype: primitiv.Device
38
39
"""
40
+ if py_primitiv_default_device is None:
41
+ raise RuntimeError("Default object is null.")
42
return py_primitiv_default_device
43
44
def dump_description(self):
primitiv/_graph.pyx
@@ -295,6 +295,8 @@ cdef class Graph:
295
:rtype: primitiv.Graph
296
297
298
+ if py_primitiv_default_graph is None:
299
300
return py_primitiv_default_graph
301
302
def clear(self):
0 commit comments