Skip to content

[BUG] ntops上下文管理没有正确替换 #551

@crapromer

Description

@crapromer

版本
main

问题描述
使用九齿上下文跑算子测例时会报错函数签名错误,这是由于上下文管理器本应将torch转换为infinicore,但是实际并没有生效,导致使用了infinicore函数的地方使用了torch函数,而传入参数为infinicore的内置类型,因此报函数签名错误

如何复现

  1. 打开test/infinicore/ops/matmul.py测试文件
  2. 在runner.run_and_exit()前面添加上下文with infinicore.use_ntops():
  3. 执行测试文件
  4. 输出函数签名错误

预期结果
通过算子测例

截图
Image

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions