[FRONTEND] Added reshape
as an alias for view
(for now) (#956)
This commit is contained in:
@@ -758,6 +758,10 @@ def view(input, shape, _builder=None):
|
|||||||
shape = [x.value for x in shape]
|
shape = [x.value for x in shape]
|
||||||
return semantic.view(input, shape, _builder)
|
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
|
# Linear Algebra
|
||||||
|
Reference in New Issue
Block a user