From 611a109d6fb0557312513ba18825d94d44e4b4c4 Mon Sep 17 00:00:00 2001 From: Matthias Diener <mdiener@illinois.edu> Date: Thu, 10 Jun 2021 22:17:41 -0500 Subject: [PATCH] add clone() --- arraycontext/impl/pytato.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arraycontext/impl/pytato.py b/arraycontext/impl/pytato.py index a89d1ce..2466296 100644 --- a/arraycontext/impl/pytato.py +++ b/arraycontext/impl/pytato.py @@ -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") -- GitLab