Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wasdyouli opened this issue May 18, 2024 · 3 comments

Comments

@wasdyouli
Copy link

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
Copy link
Collaborator

请给出更详细的报错信息

@wasdyouli
Copy link
Author

[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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants