Jittor / jittor

Jittor is a high-performance deep learning framework based on JIT compiling and meta-operators.
https://cg.cs.tsinghua.edu.cn/jittor/
Apache License 2.0
3.07k stars 307 forks source link

https://cg.cs.tsinghua.edu.cn/jittor/ 请问这里展示的示例代码似乎无法直接运行啊? #542

Closed wasdyouli closed 3 months ago

wasdyouli commented 3 months ago

Describe the bug

A clear and concise description of what the bug is. 使用中文也可以。

Full Log

Provide a full log of Jittor execution, Jittor will log environment information which help us to locate your bugs. Provide a screenshot is also acceptable.

Minimal Reproduce

Reproduce this error with a file or several lines of code. If it is not possible, leave it blank.

Expected behavior

A clear and concise description of what you expected to happen.

If you are submitting an issue for the first time, please refer to our guideline

LDYang694 commented 3 months ago

请给出更详细的报错信息

wasdyouli commented 3 months ago

[w 0520 21:48:34.294000 20 compiler.py:1384] CUDA arch(89)>86 will be backward-compatible Traceback (most recent call last): File "d:\works\1.py", line 25, in for i,(x,y) in enumerate(get_data(n)): ^ NameError: name 'n' is not defined

这是直接粘贴示例代码,使用jittor python环境,执行时报告的错误。我是在vscode中执行的。 此外,vscode还给出了一些警告: image

LDYang694 commented 3 months ago

这不是jittor的问题,以及你没有将示例代码复制完整,建议仔细检查