Skip to content

Commit 7058db8

Browse files
committed
add methods
1 parent d27dd5f commit 7058db8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pytensor/xtensor/type.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,15 @@ def rename(self, new_name_or_name_dict, **names):
195195
name_dict = new_name_or_name_dict
196196
return rename(name_dict, **names)
197197

198+
199+
def stack(self, dim, **dims):
200+
from pytensor.xtensor.shape import stack
201+
return stack(self, dim, **dims)
202+
203+
def unstack(self, din, **dims):
204+
from pytensor.xtensor.shape import unstack
205+
return unstack(self, dim, **dims)
206+
198207
# def swap_dims(self, *args, **kwargs):
199208
# ...
200209
#

0 commit comments

Comments
 (0)