Skip to content
Snippets Groups Projects
Commit 611a109d authored by Matthias Diener's avatar Matthias Diener
Browse files

add clone()

parent 8029845e
No related branches found
No related tags found
No related merge requests found
......@@ -246,6 +246,9 @@ class PytatoArrayContext(ArrayContext):
# {{{ ArrayContext interface
def clone(self):
return type(self)(self.queue, self.allocator)
def empty(self, shape, dtype):
raise ValueError("PytatoArrayContext does not support empty")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment