From 115cd3ac47d6f684de89d455cfa7a91753003d5b Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Tue, 6 Dec 2022 09:57:05 -0800 Subject: [PATCH] [FRONTEND] Added `reshape` as an alias for `view` (for now) (#956) --- python/triton/language/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/triton/language/core.py b/python/triton/language/core.py index 97f313de9..e44d706c9 100644 --- a/python/triton/language/core.py +++ b/python/triton/language/core.py @@ -758,6 +758,10 @@ def view(input, shape, _builder=None): shape = [x.value for x in shape] return semantic.view(input, shape, _builder) +@builtin +def reshape(input, shape, _builder=None): + # TODO: should be more than just a view + return view(input, shape, _builder) # ----------------------- # Linear Algebra