diff --git a/arraycontext/impl/pytato.py b/arraycontext/impl/pytato.py index b5d91a9ba69b33de5764159ddfd3b4fd51ea69c8..9509c0b001fcb8115bb3c1b81fd4e8745d53bcef 100644 --- a/arraycontext/impl/pytato.py +++ b/arraycontext/impl/pytato.py @@ -303,8 +303,7 @@ class PytatoExecutable: # {{{ extract loopy arguments execute the program for pos, arg in enumerate(args): - if isinstance(arg, np.number): - + if np.isscalar(arg): input_kwargs_to_loopy[self.input_id_to_name_in_program[(pos,)]] = ( cla.to_device(self.actx.queue, np.array(arg))) elif is_array_container(arg):