masahi commented on code in PR #16955:
URL: https://github.com/apache/tvm/pull/16955#discussion_r1589667378
##########
python/tvm/script/parser/relax/entry.py:
##########
@@ -296,13 +298,17 @@ class CallableProxy(StructInfoProxy):
purity : bool
Whether the callable is pure.
+ derive_func: Optional[Union[str, tvm.ir.EnvFunc]]
+ The derivation function for the outputq
Review Comment:
Typo `outputq`?
And what is a derivation function?
##########
python/tvm/relax/op/memory/view.py:
##########
@@ -0,0 +1,77 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+"""Operations that act on the DLTensor container """
Review Comment:
Need update here
##########
python/tvm/relax/op/memory/view.py:
##########
@@ -0,0 +1,77 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+"""Operations that act on the DLTensor container """
+from typing import Optional, Sequence, Union
+
+from tvm.tir import PrimExpr
+from tvm.relax import Expr, ShapeExpr, DataTypeImm, PrimValue
+
+from . import _ffi_api
+
+
+PrimExprLike = Union[int, PrimExpr]
+
+
+def view(
+ data: Expr,
+ shape: Optional[Union[Sequence[PrimExprLike], Expr]] = None,
+ dtype: Optional[Expr] = None,
+ relative_byte_offset: Optional[Expr] = None,
+) -> Expr:
+ """Broadcasts a tensor to a specified shape.
Review Comment:
Need update here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]