https://cg.cs.tsinghua.edu.cn/jittor/ 请问这里展示的示例代码似乎无法直接运行啊?
wasdyouli opened this issue · 3 comments
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
请给出更详细的报错信息
[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还给出了一些警告:
这不是jittor的问题,以及你没有将示例代码复制完整,建议仔细检查