Don't run local uint constant indices in C/Python backends (#1335)
* Let numpy methods handle integer size problems in AdvancedSubtensor1
* Don't run `local_uint_constant_indices` in C/python backend
Indices are always cast to int64 by the underlying methods.
Also don't run in specialize, to reduce number of passes. Other rewrites may introduce temporar indexing operations (such as x.shape[i]) which always default to int64, and it's useless to optimize immediately.
正在显示
请
注册
或者
登录
后发表评论