MasterJH5574 opened a new pull request, #14201:
URL: https://github.com/apache/tvm/pull/14201
This PR fixes a bug of the current FX translator when dealing with dtype.
Previously, the translator does not take the cases
```python
dtype = x.getattr("dtype")
```
into consideration. In this case, the dtype will be a fx.Node object, while
the translator assumes that the dtype is either a string or a torch native
datatype (e.g., torch.float32).
This PR fixes this by doing an environment table lookup before for all
dtypes.
--
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]