Hzfengsy opened a new pull request #9507:
URL: https://github.com/apache/tvm/pull/9507
We disallow to add some block attrs (e.g. `T.block_attr`, `T.reads`) to
implicit root block, but still allow `alloc_buffer`.
```python
# Disallow
def func():
T.block_attr({})
...
# Allow
def func():
T.alloc_buffer((128,))
...
# Same as
def func():
with T.block("root"):
T.alloc_buffer((128,))
...
```
cc @spectrometerHBH @junrushao1994
--
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]