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

Jittor Issue提交指南 #237

Open
Jittor opened this issue Jun 25, 2021 · 0 comments
Open

Jittor Issue提交指南 #237

Jittor opened this issue Jun 25, 2021 · 0 comments

Comments

@Jittor
Copy link
Owner

Jittor commented Jun 25, 2021

如果您是第一次为计图(jittor)提交issue,我们建议您参考一下该指南,以确保Jittor社区能够更好的为您服务,尽快解决您的issue。

提取关键错误信息

计图的关键报错信息会用红色字体标出,您可以将关键错误信息放在issue的摘要当中。

提供错误日志

提供一个较为完整的错误日志是很关键的,除了报错信息以外,计图还会在启动的时候输出和环境相关的信息,这些信息可以帮助我们更好的为您定位Bug。您可以用文字的形式,或者截图的形式,贴到issue的code block里,比如下面这样:

└─[0] <git:(master aaf97d5✱✈) > python3 -m jittor.test.test_loss -k test_cross_entropy_weight_ignore
[i 0625 15:04:20.821867 92 compiler.py:869] Jittor(1.2.3.45) src: /home/cjld/new_jittor/jittor/python/jittor
[i 0625 15:04:20.825995 92 compiler.py:870] g++ at /usr/bin/g++(9.3.0)
[i 0625 15:04:20.826257 92 compiler.py:871] cache_path: /home/cjld/.cache/jittor/master/g++
[i 0625 15:04:20.929743 92 __init__.py:284] Found gdb(9.1) at /usr/bin/gdb.
[i 0625 15:04:20.938452 92 __init__.py:284] Found addr2line(2.34) at /usr/bin/addr2line.
[i 0625 15:04:20.957717 92 compiler.py:951] py_include: -I/usr/include/python3.8 -I/usr/include/python3.8
[i 0625 15:04:20.973205 92 compiler.py:953] extension_suffix: .cpython-38-x86_64-linux-gnu.so
[i 0625 15:04:21.167158 92 __init__.py:176] Total mem: 15.07GB, using 5 procs for compiling.
[i 0625 15:04:21.379417 92 jit_compiler.cc:21] Load cc_path: /usr/bin/g++
[i 0625 15:04:21.501976 92 compile_extern.py:444] mpicc not found, distribution disabled.
E
======================================================================
ERROR: test_cross_entropy_weight_ignore (__main__.TestLoss)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cjld/new_jittor/jittor/python/jittor/test/test_loss.py", line 96, in test_cross_entropy_weight_ignore
    print(jt_y[1,2,3])
  File "/home/cjld/new_jittor/jittor/python/jittor/contrib.py", line 191, in getitem
    return x.getitem(slices)
RuntimeError: Wrong inputs arguments, Please refer to examples(help(jt.getitem)).

Types of your inputs are:
 self   = Var,
 args   = (tuple, ),

The function declarations are:
 VarHolder* getitem(VarHolder* x,  VarSlices&& slices)

Failed reason:[f 0625 15:04:23.378801 92 getitem_op.cc:119] Check failed: v>=0 && v<in_shape_i  slice overflow,  1 not in [0,1)

----------------------------------------------------------------------
Ran 1 test in 0.889s

或者提供截图的形式,这样可以保留颜色信息:

image

如果您的完整日志非常长,您可以把关键部分贴在issue里,并且上传完整日志。

提供最小复现

如果您的错误可以用很少的代码,比如一个文件或者数行代码就可以复现出来,我们非常希望您可以提供出来,这样可以极大地方便调试和完善。

和我们保持联系

很多issue可能需要数次交流才能够解决,请您和我们保持联系,我们会第一时间回复您的issue,中间可能还需要您的配合与帮助。此外,我们还提供了多种途径,可以让您快速联系到我们,如计图开发者交流QQ群(761222083),微信号(randonlang),对于一些较为复杂的问题,还可以通过远程协助的方式调试,欢迎您随时联系。

@Jittor Jittor pinned this issue Jun 25, 2021
@cxjyxxme cxjyxxme unpinned this issue Mar 31, 2022
@cjld cjld pinned this issue Mar 31, 2022
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

1 participant