You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "tlopex (via GitHub)" <gi...@apache.org> on 2026/04/08 06:11:24 UTC
[PR] [Docs] Add API reference for tvm.s_tir submodules: dlight, meta_schedule, backend [tvm]
tlopex opened a new pull request, #19369:
URL: https://github.com/apache/tvm/pull/19369
as per title
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [Docs] Add API reference for tvm.s_tir submodules: dlight, meta_schedule, backend [tvm]
Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #19369:
URL: https://github.com/apache/tvm/pull/19369#discussion_r3049502710
##########
docs/reference/api/python/s_tir/backend.rst:
##########
@@ -0,0 +1,42 @@
+.. 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.
+
+tvm.s_tir.backend
+-----------------
+
+tvm.s_tir.backend
+*****************
Review Comment:

This sub-heading is redundant as it is identical to the page title defined on line 18.
##########
docs/reference/api/python/s_tir/backend.rst:
##########
@@ -0,0 +1,42 @@
+.. 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.
+
+tvm.s_tir.backend
+-----------------
+
+tvm.s_tir.backend
+*****************
+.. automodule:: tvm.s_tir.backend
+ :members:
+ :imported-members:
+
+tvm.s_tir.backend.adreno
+************************
+.. automodule:: tvm.s_tir.backend.adreno
+ :members:
+ :imported-members:
Review Comment:

Since the top-level `tvm.s_tir.backend` module (line 23) uses the `:imported-members:` directive, the members of this submodule are already included in the documentation. Adding `:noindex:` here is necessary to avoid duplicate index warnings and entries, maintaining consistency with `meta_schedule.rst` and `dlight.rst`.
```suggestion
.. automodule:: tvm.s_tir.backend.adreno
:members:
:imported-members:
:noindex:
```
##########
docs/reference/api/python/s_tir/backend.rst:
##########
@@ -0,0 +1,42 @@
+.. 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.
+
+tvm.s_tir.backend
+-----------------
+
+tvm.s_tir.backend
+*****************
+.. automodule:: tvm.s_tir.backend
+ :members:
+ :imported-members:
+
+tvm.s_tir.backend.adreno
+************************
+.. automodule:: tvm.s_tir.backend.adreno
+ :members:
+ :imported-members:
+
+tvm.s_tir.backend.adreno.pipeline
+*********************************
+.. automodule:: tvm.s_tir.backend.adreno.pipeline
+ :members:
+
+tvm.s_tir.backend.adreno.transform
+***********************************
+.. automodule:: tvm.s_tir.backend.adreno.transform
+ :members:
+ :imported-members:
Review Comment:

Missing `:noindex:` directive to prevent duplicate indexing of members already covered by the parent module.
```suggestion
.. automodule:: tvm.s_tir.backend.adreno.transform
:members:
:imported-members:
:noindex:
```
##########
docs/reference/api/python/meta_schedule.rst:
##########
@@ -17,7 +17,132 @@
tvm.s_tir.meta_schedule
------------------------
+
+tvm.s_tir.meta_schedule
+***********************
Review Comment:

This sub-heading is redundant as it is identical to the page title defined on line 18. This creates an unnecessary level of nesting in the generated table of contents.
##########
docs/reference/api/python/s_tir/backend.rst:
##########
@@ -0,0 +1,42 @@
+.. 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.
+
+tvm.s_tir.backend
+-----------------
+
+tvm.s_tir.backend
+*****************
+.. automodule:: tvm.s_tir.backend
+ :members:
+ :imported-members:
+
+tvm.s_tir.backend.adreno
+************************
+.. automodule:: tvm.s_tir.backend.adreno
+ :members:
+ :imported-members:
+
+tvm.s_tir.backend.adreno.pipeline
+*********************************
+.. automodule:: tvm.s_tir.backend.adreno.pipeline
+ :members:
Review Comment:

Missing `:noindex:` directive. This submodule's members are likely already indexed via the parent module's `:imported-members:` directive.
```suggestion
.. automodule:: tvm.s_tir.backend.adreno.pipeline
:members:
:noindex:
```
##########
docs/reference/api/python/s_tir/dlight.rst:
##########
@@ -17,6 +17,51 @@
tvm.s_tir.dlight
----------------
+
+tvm.s_tir.dlight
+****************
Review Comment:

This sub-heading is redundant as it is identical to the page title defined on line 18.
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [Docs] Add API reference for tvm.s_tir submodules: dlight, meta_schedule, backend [tvm]
Posted by "MasterJH5574 (via GitHub)" <gi...@apache.org>.
MasterJH5574 merged PR #19369:
URL: https://github.com/apache/tvm/pull/19369
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org