File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757from pytato .target .loopy import LoopyPyOpenCLTarget
5858from pytato .transform import (
5959 ArrayOrNames ,
60+ ArrayOrNamesTc ,
6061 CopyMapper ,
6162 Deduplicator ,
62- MappedT ,
6363 TransformMapperCache ,
6464)
6565from pytools import UniqueNameGenerator , memoize_method
@@ -250,15 +250,15 @@ def map_data_wrapper(self, expr: DataWrapper) -> Array:
250250 non_equality_tags = expr .non_equality_tags )
251251
252252
253- def transfer_from_numpy (expr : MappedT , actx : ArrayContext ) -> MappedT :
253+ def transfer_from_numpy (expr : ArrayOrNamesTc , actx : ArrayContext ) -> ArrayOrNamesTc :
254254 """Transfer arrays contained in :class:`~pytato.array.DataWrapper`
255255 instances to be device arrays, using
256256 :meth:`~arraycontext.ArrayContext.from_numpy`.
257257 """
258258 return TransferFromNumpyMapper (actx )(expr )
259259
260260
261- def transfer_to_numpy (expr : MappedT , actx : ArrayContext ) -> MappedT :
261+ def transfer_to_numpy (expr : ArrayOrNamesTc , actx : ArrayContext ) -> ArrayOrNamesTc :
262262 """Transfer arrays contained in :class:`~pytato.array.DataWrapper`
263263 instances to be :class:`numpy.ndarray` instances, using
264264 :meth:`~arraycontext.ArrayContext.to_numpy`.
You can’t perform that action at this time.
0 commit comments